Support

Account

Home Forums General Issues my custom field does not appear ? Reply To: my custom field does not appear ?

  • Hello,

    The problem you have here is that get_field needs to have an additional parameter in it to specifically say which taxonomy term it is supposed to look at for the content.

    https://www.advancedcustomfields.com/resources/get-values-from-a-taxonomy-term/

    In this instance, you’ll be looking to output the field on the taxonomy page, which would be the following code:

    
    // vars
    $queried_object = get_queried_object(); 
    $taxonomy = $queried_object->taxonomy;
    $term_id = $queried_object->term_id;
    
    // load thumbnail for this taxonomy term (term string)
    $service_editor = get_field('service_editor', $taxonomy . '_' . $term_id);
    
    echo $service_editor;

    Edit: Sorry Jonathan, I didn’t refresh the page before I posted and didn’t see your reply. Hope either of our responses help.