Created
August 19, 2014 23:50
-
-
Save bolorino/6ed2a2750922bec9187d to your computer and use it in GitHub Desktop.
Get Paged Productions List. Template: archive-spectacle.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** Theatre WP | |
* Get a paged list of productions | |
**/ | |
// The number of productions to display | |
$spectacles_per_page = get_option( 'twp_spectacles_number' ); | |
$paged = get_query_var('paged') ? intval( get_query_var('paged') ) : 1; | |
$args = array( | |
'post_type' => 'spectacle', | |
'paged' => $paged, | |
'posts_per_page' => $spectacles_per_page | |
); | |
query_posts( $args ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment