Created
July 7, 2014 12:41
-
-
Save carlaizumibamford/b796d717449f74c302ce to your computer and use it in GitHub Desktop.
This file contains 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 | |
if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } | |
elseif ( get_query_var('page') ) { $paged = get_query_var('page'); } | |
else { $paged = 1; } | |
query_posts("posts_per_page=3&cat=5&paged=".$paged); ?> | |
<?php if ( have_posts () ) : while (have_posts()):the_post(); ?> | |
<?php endwhile; ?> | |
///Pagination code here. | |
<?php else : ?> | |
<?php endif; ?> | |
<?php wp_reset_query(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment