Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Template Name: Releases */
- get_header(); ?>
- <section id="primary" <?php generate_content_class(); ?> itemprop="mainContentOfPage">
- <main id="main" <?php generate_main_class(); ?> itemtype="http://schema.org/Blog" itemscope="itemscope" role="main">
- <?php do_action('generate_before_main_content'); ?>
- <?php if ( have_posts() ) : ?>
- <?php /* Start the Loop */
- $args = array( 'post_type' => array('tracks'), 'paged' => $paged );
- $query = new WP_Query( $args );
- $wp_query = $query;
- ?>
- <?php while ( $query->have_posts() ) : $query->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( 'release', 'page' );
- ?>
- <?php endwhile; ?>
- <?php generate_content_nav( 'nav-below' ); ?>
- <?php else : ?>
- <?php get_template_part( 'no-results', 'archive' ); ?>
- <?php endif; ?>
- <?php do_action('generate_after_main_content'); ?>
- </main><!-- #main -->
- </section><!-- #primary -->
- <?php
- do_action('generate_sidebars');
- get_footer();
- /*-----------------------------------------------------*/
- <?php
- /**
- * The template used for displaying page content in page.php
- *
- * @package GeneratePress
- */
- ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemtype="http://schema.org/CreativeWork" itemscope="itemscope">
- <div class="inside-article">
- <?php do_action( 'generate_before_content'); ?>
- <header class="entry-header">
- <?php the_title( '<h1 class="entry-title" itemprop="headline">', '</h1>' ); ?>
- </header><!-- .entry-header -->
- <?php do_action( 'generate_after_entry_header'); ?>
- <div class="entry-content" itemprop="text">
- <?php the_content(); ?>
- <?php
- wp_link_pages( array(
- 'before' => '<div class="page-links">' . __( 'Pages:', 'generate' ),
- 'after' => '</div>',
- ) );
- ?>
- </div><!-- .entry-content -->
- <?php do_action( 'generate_after_content'); ?>
- <?php edit_post_link( __( 'Edit', 'generate' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
- </div><!-- .inside-article -->
- </article><!-- #post-## -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement