Page ordering ignored, need help…
-
Heya,
I’m trying to list each page, and it’s content on this website’s front page using the following code:
$pages = get_pages( array( 'exclude' => '316', 'hierarchical' => 0 ) ); foreach ($pages as $page) { echo '<h1 id="' . str_replace(' ', '-', strtolower($page->post_title)) . '">' . $page->post_title . '</h1>'; echo '<div class="content">' . do_shortcode($page->post_content) . '</div>'; }
However, it’s not respecting the page order for some reason. Can anyone provide some insight? Thank you!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Page ordering ignored, need help…’ is closed to new replies.