Support

Account

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>