Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="container">
- <div class="row">
- <div id="primary" class="content-area <?php echo apply_filters('primary_bootstrap_class', 'col-sm-7'); ?>">
- <main id="main" class="site-main" role="main">
- <?php
- $args = array(
- 'cat' => 89,
- 'posts_per_page' => 10,
- );
- query_posts( $args );
- ?>
- <?php if ( have_posts() ) : ?>
- <?php /* Start the Loop */ ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <?php
- /* Include the Post-Format-specific template for the content.
- * If you want to override this in a child theme, then include a file
- * called content-___.php (where ___ is the Post Format name) and that will be used instead.
- */
- get_template_part( 'content', get_post_format() );
- ?>
- <?php endwhile; ?>
- <?php wp_reset_query(); ?>
- <?php faster_paging_nav(); ?>
- <?php else : ?>
- <?php get_template_part( 'content', 'none' ); ?>
- <?php endif; ?>
- </main><!-- #main -->
- </div><!-- #primary -->
- <?php get_sidebar(); ?>
- </div><!-- .row -->
- </div><!-- .container -->
- function faster_post_nav() {
- $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );
- $next = get_adjacent_post( false, '', false );
- // Don't print empty markup if there's nowhere to navigate.
- if ( ! $next && ! $previous ) {
- return;
- }
- ?>
- <nav class="navigation post-navigation" role="navigation">
- <h1 class="screen-reader-text"><?php _e( 'Post navigation', 'faster' ); ?></h1>
- <div class="nav-links">
- <?php
- previous_post_link( '<div class="nav-previous">%link</div>', __( 'Previous post', 'aran-rd' ), true );
- next_post_link( '<div class="nav-next">%link</div>', __( 'Next post', 'aran-rd' ), true );
- ?>
- </div><!-- .nav-links -->
- </nav><!-- .navigation -->
- <?php
- }
Add Comment
Please, Sign In to add comment