Home › Forums › General Issues › display my taxonomy's image and text fields on taxonomy term page › Reply To: display my taxonomy's image and text fields on taxonomy term page
Worked like a charm, thanks a lot!
here is my code for other people, with the same question, to reference
<?php $term = $wp_query->queried_object; ?>
<article <?php post_class(''); ?>>
<div class="entry-content">
<div class="row">
<div class="col-xs-12 col-sm-6 col-md-4">
<div class="post-image">
<?php $magazineimage = wp_get_attachment_image_src(get_field('magazine_taxonomy_image', $term->taxonomy . '_' . $term->term_id), 'full'); ?>
<img src="<?php echo $magazineimage[0]; ?>" alt="<?php echo get_the_title(get_field('magazine_taxonomy_image')) ?>" class="placeholder" />
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-8">
<?php the_field('magazine_taxonomy_description', $term->taxonomy . '_' . $term->term_id); ?>
</div>
</div>
</div>
</article>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.