Support

Account

Home Forums ACF PRO Is it possible to display the same relationships on different pages?

Helping

Is it possible to display the same relationships on different pages?

  • Hi, I am currently using relationships with a custom post type to post promotions onto the front page of our website. My question is, is it possible to display the same linked custom post types (promotions) on a secondary page? Currently I only know how to set each relationship PER page (front has specific promos, page 2 has their own).

  • Yes, you would need to get the value of the relationship field from the other page by supplying the post ID of the post to get it from

    
    $posts = get_field('relationsip', $post_id_of_home_page);
    
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Is it possible to display the same relationships on different pages?’ is closed to new replies.