Support

Account

Home Forums General Issues Category values to containing posts Reply To: Category values to containing posts

  • All I can to you tell you how this would be done in PHP. If you’re using some type of page builder theme then you need to contact them.

    
    // example, loop on single post page
    if (have_posts()) {
      while (have_posts()) {
        the_post();
        $terms = get_post_terms($post->ID, 'your-taxonomy');
        if ($terms) {
          $term = $terms[0];
          $image = get_field('image_field_name', $term);
        }
      }
    }