Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The template for displaying all pages.
- *
- * This is the template that displays all pages by default.
- * Please note that this is the WordPress construct of pages
- * and that other 'pages' on your WordPress site will use a
- * different template.
- *
- * @package Catch Themes
- * @subpackage Catch_Box
- * @since Catch Box 1.0
- */
- get_header();
- //Getting data from Theme Options Panel
- global $catchbox_options_settings;
- $options = $catchbox_options_settings; ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <?php get_template_part( 'content', 'page' ); ?>
- <?php
- // If comments are open or we have at least one comment, load up the comment template
- if ( ( comments_open() || '0' != get_comments_number() ) && ( $options[ 'commenting_setting' ] == 'default' ) ) {
- comments_template( '', true );
- } ?>
- <?php endwhile; // end of the loop. ?>
- <?php
- $args = array(
- 'post_type' => 'post',
- 'posts_per_page' => 5
- );
- $wp_query = new WP_Query( $args );
- while ( have_posts() ) : the_post();
- get_template_part( 'content', 'post' );
- endwhile; // end of the loop.
- /* Restore original Post Data */
- wp_reset_postdata();
- ?>
- </div><!-- #content -->
- <?php
- /**
- * catchbox_after_content hook
- *
- */
- do_action( 'catchbox_after_content' ); ?>
- </div><!-- #primary -->
- <?php
- /**
- * catchbox_after_primary hook
- *
- */
- do_action( 'catchbox_after_primary' ); ?>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement