Pagination Help
-
I know how to get pagination setup in the actual query string with the whole ‘$paged=’ thing, but how is it done in wp_query? I’ve looked at the codex for pagination but I’m still left in confusion..
This is my query, but I’m unsure where to add in pagination. I tried to do ‘posts_per_page’ but that didn’t work.
<?php $args = array( 'post_type' => 'portfolio', 'portfolio_category' => 'portfolio'); $loop = new WP_Query ($args); while ($loop->have_posts() ) : $loop->the_post(); ?>Any help would be incredibly appreciated!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Pagination Help’ is closed to new replies.