• Resolved ttmt

    (@ttmt)


    Hi

    I’m using Custom Field Suite in a WordPress Multisite.

    I’d like to get field contents from one site and display them on another.

    I can switch to the blog and get the page I need but how would I get the fields content.

    switch_to_blog(4);//Info Hub
    
    $post_7 = get_post(7);
    $title = $post_7->post_title;
    echo $title;
    
    $important_facts  = cfs()->get('why_its_important_facts');

    https://www.ads-software.com/plugins/custom-field-suite/

Viewing 1 replies (of 1 total)
  • Plugin Author Matt Gibbs

    (@mgibbs189)

    Pass the post ID into the 2nd parameter of get().

    CFS()->get( ‘why_its_important_facts’, $post_7->ID );

Viewing 1 replies (of 1 total)
  • The topic ‘Multisite get custom fields from a page’ is closed to new replies.