Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <!-- START CONTENT -->
- <?php
- $args = array(
- 'sort_order' => 'ASC',
- 'sort_column' => 'menu_order', //post_title
- 'hierarchical' => 1,
- 'exclude' => '',
- 'child_of' => 0,
- 'parent' => -1,
- 'exclude_tree' => '',
- 'number' => '',
- 'offset' => 0,
- 'post_type' => 'page',
- 'post_status' => 'publish'
- );
- $pages = get_pages($args);
- //start loop
- foreach ($pages as $page_data) {
- $content = apply_filters('the_content', $page_data->post_content);
- $title = $page_data->post_title;
- $slug = $page_data->post_name;
- ?>
- <div class='<?php echo "$slug" ?>'>
- <?php
- echo "$content";
- ?>
- </div>
- <?php } ?>
- <!-- END CONTENT -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement