Hello,
Use ‘get_fields()’ and ‘get_field_object()’.
$loop = new WP_Query( $args );
$posts = $loop->get_posts();
foreach ( $posts as $post ) {
$acf_fields = get_fields();
//var_dump($acf_fields);
foreach ( $acf_fields as $key => $value ) {
$field_object = get_field_object( $key );
echo "<pre>";
var_dump( $field_object );
echo "</pre>";
echo "This Field Type is <strong>" . $field_object['type'] . "</strong>\n";
}
}
http://www.advancedcustomfields.com/resources/functions/get_fields/
http://www.advancedcustomfields.com/resources/functions/get_field_object/
Please check the return value use the ‘var_dump()’.
http://www.advancedcustomfields.com/resources/how-to/debug/
Hello,
I think that it was used when your boss has downloaded.
http://www.advancedcustomfields.com/faq/enter-activation-code/
Version 4
Version 4 requires each add-ons to be installed as a separate plugin. The license key is used to download the file, but is not needed to unlock updates.
Hello.
Try to set the “Minimum Rows”.
http://www.advancedcustomfields.com/resources/field-types/repeater/
- Minimum Rows: Set a limit on how many rows of data are required