single page theme
-
I’m trying to make single page theme and I have code that will display all the pages on a single page. however, I would like to be able to sort these ages based off of the main menu order. Does anyone know how I can do this. here’s the code I have to display the pages:
<?php $pages = get_pages();
foreach ($pages as $page_data) {
$content = apply_filters(‘the_content’, $page_data->post_content);
$title = $page_data->post_title;
$slug = $page_data->post_name;echo “<div class=’row’>”;
echo “<div class=’ large-12 columns $slug’>”;
echo “<h2 class=’title’>$title</h2>”;
echo $content;
echo “</div>”;
echo “</div>”;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘single page theme’ is closed to new replies.