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 Gridalicious
- * @since Gridalicious 1.0
- */
- get_header(); ?>
- <main id="main" class="site-main" role="main">
- <?php if(is_front_page() ):
- $args = array (
- 'post_type' => 'post',
- 'category_name' => 'aciform'
- );
- $front_page_query = new WP_Query( $args );
- ?>
- <?php if ( $front_page_query->have_posts() ) :
- while ( $front_page_query->have_posts() ) : $front_page_query->the_post();
- // Code for displaying the post
- ?>
- <?php include(locate_template( 'content-cat.php', false, false )); ?>
- <?php //get_template_part( 'content', 'cat' ); ?><!-- .entry-content -->
- <?php
- endwhile;
- wp_reset_postdata();
- else:
- // No Posts Found Code
- endif;
- endif; //is_front_page end
- ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <?php get_template_part( 'content', 'page' ); ?>
- <?php
- /**
- * gridalicious_comment_section hook
- *
- * @hooked gridalicious_get_comment_section - 10
- */
- do_action( 'gridalicious_comment_section' );
- ?>
- <?php endwhile; // end of the loop. ?>
- </main><!-- #main -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement