GB Theme Doc

acf-fields.php

Table of Contents

first_term()  : mixed
get_term_loop_ID()  : mixed
get_term_ID()  : mixed
the_term_ID()  : mixed
get_term_description()  : mixed
the_term_description()  : mixed
get_term_title()  : mixed
the_term_title()  : mixed
get_term_slug()  : mixed
the_term_slug()  : mixed
get_term_taxonomy()  : mixed
the_term_taxonomy()  : mixed
get_term_count()  : mixed
the_term_count()  : mixed
get_term_permalink()  : mixed
the_term_permalink()  : mixed
get_terms_field()  : mixed
def()  : mixed
field_parse()  : mixed
undocumented function summary
field_parse_attr()  : mixed
field_parse_post()  : mixed
fields_html()  : mixed
fields()  : mixed
field_exists()  : mixed
field_block()  : mixed
acf_image()  : mixed
Create a image with a given ACF field
acf_link()  : mixed
Create a link with a given ACF address
acf_date()  : mixed
Create a formatted date with a given ACF address

Functions

first_term()

first_term([mixed $taxonomy = null ]) : mixed
Parameters
$taxonomy ( mixed = null )

get_term_description()

get_term_description() : mixed

the_term_description()

the_term_description() : mixed
get_term_permalink() : mixed
the_term_permalink() : mixed

get_terms_field()

get_terms_field(mixed $field) : mixed
Parameters
$field ( mixed )

def()

def(mixed $field[, mixed $default = '' ]) : mixed
Parameters
$field ( mixed )
$default ( mixed = '' )

field_parse()

undocumented function summary

field_parse(string $field_string[, array<string|int, mixed> $settings = null ]) : mixed

Undocumented function long description

value:$value return static value {opt_$field} return an option field {$field['item']} return field array value {$field->obj} return field object item $el.$class > {$field} return an container element $el with class $class and content $field $el.$class > {!$field} if $field exists return an container element $el with class $class and content $field opt_ tax_

Parameters
$field_string ( string )

Description

$settings ( array<string|int, mixed> )

Description

field_parse_attr()

field_parse_attr(mixed $field_string, mixed $attr, mixed $prefix[, mixed $string_end = array(' ') ]) : mixed
Parameters
$field_string ( mixed )
$attr ( mixed )
$prefix ( mixed )
$string_end ( mixed = array(' ') )

field_parse_post()

field_parse_post(mixed $field_string) : mixed
Parameters
$field_string ( mixed )

fields_html()

fields_html(mixed $field_string[, mixed $settings = null ]) : mixed
Parameters
$field_string ( mixed )
$settings ( mixed = null )

fields()

fields(mixed $field_string[, mixed $settings = null ]) : mixed
Parameters
$field_string ( mixed )
$settings ( mixed = null )

field_exists()

field_exists(mixed $field_string) : mixed
Parameters
$field_string ( mixed )

field_block()

field_block(mixed $field_string[, mixed $classes = null ]) : mixed
Parameters
$field_string ( mixed )
$classes ( mixed = null )

acf_image()

Create a image with a given ACF field

acf_image([array<string|int, mixed> $args = null ]) : mixed

Return Html image with a given class and size

Parameters
$args ( array<string|int, mixed> )

Image Settings

$args['image'] ( string )

ACF field image. Complex field will be parsed with field_parse()

$args['size'] ( string )

Image Size format

$args['class'] ( string )

The image class

Use
fields()

to print link

Create a link with a given ACF address

acf_link([array<string|int, mixed> $args = null ]) : mixed

Return Html link with a given class, url and text

Parameters
$args ( array<string|int, mixed> )

Link Settings

$args['link'] ( string )

ACF field url. Complex field will be parsed with field_parse()

$args['text'] ( string )

Link text

$args['class'] ( string )

The link class

$args['tel'] ( bool )

if true the link will open with tel app

$args['mail'] ( bool )

if true the link will open with a mail app

$args['new_window'] ( bool )

if true the link will open in a new window

Use
field_parse()

to print default text

acf_date()

Create a formatted date with a given ACF address

acf_date([array<string|int, mixed> $args = null ]) : mixed

Return formatted ACF date

Parameters
$args ( array<string|int, mixed> )

Date Settings

$args['date'] ( string )

ACF field date. Complex field will be parsed with field_html()

$args['format'] ( string )

Date format

$args['container'] ( string )

Tag container element

Search results