Hi,
I’m new using ACF and custom taxonomies.
With ACF, I’ve created a custom field group titled “model bios”.
For this field group, I’ve created such kind of fields : “model_birthday”, “model_birthdate”…
I’ve created a custom taxonomy titled “Models” with Ultimate CMS plug-in and in my “models bio” location set-up, I’ve added the rule Taxonomy Term = Models
On each post, I would like to display the values of the custom fields “model_birthday”, “model_birthdate”… for the Model related with the post.
As I also use Categories Images plug-in, using the following code,
<?php foreach (get_the_terms(get_the_ID(), ‘models’) as $cat) : ?>
term_id, ‘models’); ?>”>
term_id); ?>” /><?php echo $cat->name; ?>
<?php endforeach; ?>
I’m able to retrieve, Model archive URL, Model image and Model name on each post.
But when it comes to display all the value created with the Custom Fields such as “model_birthday”, “model_birthdate”… I feel unable to.
As the basic
<?php echo $cat->model_birthday ; ?>
doesn’t work, I’ve made a lot of different attempts with “get_field()” and “the_field()” functions but wasn’t able to display any results on my posts.
Thanks for your help.
Fred