<?php
$pages = get_pages(
array(
'sort_order' => 'ASC',
'sort_column' => 'menu_order',
'post_type' => 'page',
'posts_per_page' => 999
)
);
foreach($pages as $page){
?>
<section id="<?=$page->post_name?>" title="<?=$page->post_title?>">
<div id="left">
<div id="top_img">
<?=get_the_post_thumbnail($page->ID, 'full')?>
</div><!--/top_img-->
</div><!--/left-->
<div id="right">
<?=apply_filters( 'the_content', $page_content );?>
</div><!--/right-->
</section><!--/section-->
<?php
}
?>
Iterate WP pages and create <section> for them
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.