Support

Account

Home Forums Front-end Issues Show category name and image on related custom post Reply To: Show category name and image on related custom post

  • You need to get the taxonomy terms associated with the related posts and loop over them

    
    <?php 
    $linked_organisation = get_field('linked_organisation');
    if ($linked_organisation) {
      foreach ($linked_organisation as $l) {
        $terms = get_post_terms($l->ID, 'YOUR TAXOMY HERE');
        if ($terms) {
          foreach ($terms as $term) {
            // get fields from term
            get_field('FIELD NAME', $term);
          }
        }
      }
    }