Custom Fields
Re-Envisioned
Support General Link fields in taxonomy to post

This topic contains 0 replies, has 1 voice, and was last updated by  Carl Mitchell 2 months, 1 week ago.

  • Creator
    Topic
  • #12601

    Carl Mitchell
    Participant

    Hi.
    I have created a new taxonomy called ‘Vendors’ and a bunch of fields with MB Term Meta within ‘Vendors’. URL, Image, Text etc.
    I want to use this data in a post which is linked to ‘Vendors’.
    Specifically I am using Essential Grid. I have added a function which lists the usable terms within my post:

    function my_post_meta( $content ) {

    $my_meta = get_post_meta( get_the_ID() );
    $my_meta_data = '<pre>' . print_r( $my_meta, true ) . '</pre>';
    
    return $content . $my_meta_data;
    

    }

    if( !is_admin() ) {

    add_filter( 'the_content', 'my_post_meta' );
    

    }

    How do I get the data from the taxonomy ‘Vendors’ to be useable in my post.

    Clearly I’m a little new, so be patient with me…

    Thanks, Carl.

You must be logged in to reply to this topic.