Hello,
I’m having struggle with my custom field…
I have created a taxonomy via WCK Taxonomy Creator. Taxonomy name is – “marke”.
And I have made a custom field for that taxonomy. It calls “test”. It is just a text field.
Also, I have a custom page template, where I want to see all the info of the taxonomy.
I have a code that shows my custom post’s names (which are assigned to that taxonomy) in my template.
<?php $markes = get_terms( array(
'taxonomy' => 'marke',
'hide_empty' => false,
'orderby' => 'menu_order',
'order' => 'ASC'
));
?>
<div>
<?php foreach($markes as $marke): ?>
<div>
<a href="<?php echo get_term_link($marke->term_id);?>" >
<?php echo $marke->name; ?>
</a>
</div>
<?php endforeach;?>
</div>
So the question is. How can I show the content of that taxonomy custom field – “test”?
I want to see that text after post name.
Thank’s in advance
inside your loop
the_field('test', $marke);
OR
$value = get_field('test', $marke);
echo $value;