Support

Account

Home Forums Front-end Issues Display field of taxonomy term outside the loop Reply To: Display field of taxonomy term outside the loop

  • It works !

    I had to set category_{id} as second parameter of the_field().
    but to be honest I don’t understand why, the documentation says nothing about this, so if someone can turn on the light…
    the documentation :
    th_field($selector, [$post_id], [$format_value]);

    the_field('cat_img', 'category_'.$child->term_id);