Support

Account

Home Forums General Issues Relationship Field and Prev/Next Posts Reply To: Relationship Field and Prev/Next Posts

  • I also feel like ACF Relationship Field Prev/Next Buttons would work but I get stuck on the first part in how to pull from all artist pages or the single-artist.php template as opposed to just the page ID in…

    <?php
    // This should be the ID of the page the relationship field is set up on,
    // NOT this page’s ID
    $page_id = 5;
    
    // Get the projects from the relationship field
    $project_listing = get_field('project_listing', $page_id);