Advertisement
woomp

Releases

Sep 25th, 2015
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. <?php
  2. /* Template Name: Releases */
  3.  
  4. get_header(); ?>
  5.  
  6. <section id="primary" <?php generate_content_class(); ?> itemprop="mainContentOfPage">
  7. <main id="main" <?php generate_main_class(); ?> itemtype="http://schema.org/Blog" itemscope="itemscope" role="main">
  8. <?php do_action('generate_before_main_content'); ?>
  9. <?php if ( have_posts() ) : ?>
  10.  
  11.  
  12.  
  13.  
  14. <?php /* Start the Loop */
  15. $args = array( 'post_type' => array('tracks'), 'paged' => $paged );
  16. $query = new WP_Query( $args );
  17.  
  18. $wp_query = $query;
  19. ?>
  20. <?php while ( $query->have_posts() ) : $query->the_post(); ?>
  21.  
  22. <?php
  23. /* Include the Post-Format-specific template for the content.
  24. * If you want to override this in a child theme, then include a file
  25. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  26. */
  27. get_template_part( 'release', 'page' );
  28. ?>
  29.  
  30. <?php endwhile; ?>
  31.  
  32.  
  33.  
  34. <?php generate_content_nav( 'nav-below' ); ?>
  35.  
  36. <?php else : ?>
  37.  
  38. <?php get_template_part( 'no-results', 'archive' ); ?>
  39.  
  40. <?php endif; ?>
  41. <?php do_action('generate_after_main_content'); ?>
  42. </main><!-- #main -->
  43. </section><!-- #primary -->
  44.  
  45. <?php
  46. do_action('generate_sidebars');
  47. get_footer();
  48.  
  49. /*-----------------------------------------------------*/
  50. <?php
  51. /**
  52. * The template used for displaying page content in page.php
  53. *
  54. * @package GeneratePress
  55. */
  56. ?>
  57.  
  58. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemtype="http://schema.org/CreativeWork" itemscope="itemscope">
  59. <div class="inside-article">
  60. <?php do_action( 'generate_before_content'); ?>
  61. <header class="entry-header">
  62. <?php the_title( '<h1 class="entry-title" itemprop="headline">', '</h1>' ); ?>
  63. </header><!-- .entry-header -->
  64. <?php do_action( 'generate_after_entry_header'); ?>
  65. <div class="entry-content" itemprop="text">
  66. <?php the_content(); ?>
  67. <?php
  68. wp_link_pages( array(
  69. 'before' => '<div class="page-links">' . __( 'Pages:', 'generate' ),
  70. 'after' => '</div>',
  71. ) );
  72. ?>
  73. </div><!-- .entry-content -->
  74. <?php do_action( 'generate_after_content'); ?>
  75. <?php edit_post_link( __( 'Edit', 'generate' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
  76. </div><!-- .inside-article -->
  77. </article><!-- #post-## -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement