Multiple Page Loops (not posts) with Custom Fields to Display on One Page (1 post)

  1. amanda_wolf
    Posted 3 years ago #

    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">
               $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);

    Also, I am using a plugin for the custom fields called "Advanced Custom Fields"

Topic Closed

This topic has been closed to new replies.

About this Topic