Home Forums General Issues Taxonomy custom fields in custom page template


Taxonomy custom fields in custom page template

  • 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'
    	<?php foreach($markes as $marke): ?>
    		        <a href="<?php echo get_term_link($marke->term_id);?>" >
    			<?php echo $marke->name; ?>
    	 <?php endforeach;?>

    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);


    $value = get_field('test', $marke);
    echo $value;
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.