Reading section. * This file actually represents the blog page template - it displays the posts, separated by pages and * ordered by date. */ get_header(); //get all the page data needed and set it to an object that can be used in other files $pex_page=new stdClass(); $pex_page->intro=get_opt("_posts_intro"); $pex_page->slider=get_opt('_home_slider'); $pex_page->layout=get_opt('_blog_layout'); $pex_page->static_image=get_opt('_blog_static_image'); $pex_page->sidebar=get_opt('_blog_sidebar'); $pex_page->carousel=get_opt('_blog_carousel'); $pex_page->carousel_title=get_opt('_blog_carousel_title'); //include the before content template locate_template( array( 'includes/html-before-content.php'), true, true ); if(have_posts()){ while(have_posts()){ the_post(); global $more; $more = 0; //include the post template locate_template( array( 'includes/post-template.php'), true, false ); } print_pagination(); }else{ echo pex_text('_no_posts_available'); } //include the after content template locate_template( array( 'includes/html-after-content.php'), true, true ); get_footer(); ?>