Multiple Page Loops (not posts) with Custom Fields to Display on One Page
I am having trouble figuring out how to display multiple pages with custom fields on a one page (scroll) website. I need to make the process easy for a client to update and don’t want to use a custom post type. I found some code to call the pages where I want them but I can’t figure out how to tell WordPress to display the custom fields as well as the content. Here is the code I have so far:
<div id="services-section"> <?php $page_id = 6; $page_data = get_page( $page_id = 6 ); echo '<h2>'. $page_data->post_title .'</h2>'; echo apply_filters('the_content', $page_data->post_content); ?> </div>
Also, I am using a plugin for the custom fields called “Advanced Custom Fields”
- The topic ‘Multiple Page Loops (not posts) with Custom Fields to Display on One Page’ is closed to new replies.