Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php //if( term_exists( 'Video', 'category' ) ) :
- $args = array(
- 'post_type' => 'post',
- 'post_status' => 'publish',
- 'numberposts' => 4,
- 'category_name' => 'Pizza Power Reports',
- 'orderby' => 'date',
- 'order' => 'DESC',
- 'exclude' => array(),
- );
- $the_query = new WP_Query( $args );
- $count = 0;
- ?>
- <div class="power-reports">
- <?php
- if ( $the_query->have_posts() ) :
- while ($the_query->have_posts()) {
- $the_query->the_post();
- $count++;
- if ($count == 1) :
- ?>
- <div class="col-md-4 pl-0">
- <a href="#"><img src="<?php echo PMQ_IMAGES; ?>/power-reports.png" alt=""></a>
- <?php //the_title(); ?>
- </div>
- <?php endif;
- if ($count > 1 && $count <= 4 ) {
- ?>
- <div class="col-md-8 pr-0">
- <?php if($count == 2 ): ?>
- <h2><?php echo esc_html( 'PIZZA POWER REPORTS', 'themeplate' ); ?></h2>
- <?php endif; ?>
- <div class="entry-title">
- <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?> <i class="fa fa-angle-right"></i></a></h3>
- </div>
- </div>
- <?php } } endif; ?>
- </div>
- <?php //endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement