• My blog is organized with the front page holding the blog posts like any other WP blog. However, readers have the ability to click on the author of the entries and load up the author’s individual page with all the author’s posts.

    The problem is that pagination isn’t working in the loop on the author pages. I’ve already assumed that the Settings -> Reading -> Blog pages show at most: option doesn’t apply here.

    How can I get the pagination going on pages using the loop that aren’t my main blog page?

Viewing 1 replies (of 1 total)
  • I need help on this too! It’s driving me nuts .. I used a plugin (Custom Post Type Manager) to create custom post types.

    These new post types can be displayed in a template, but the template/custom post types are registering with wordpress as posts – not pages, so: pagination is not working (it shouldn’t, as mentioned here).

    I’m looking for a way to use pagination with the wordpress query_posts() function or even a more custom loop – such as using SQL to pull from the database (like here) outside of a page template.

    Hope somebody can help, thanks!

    Here’s an example of my code:

    <?php $args = array(
    	'posts_per_page' => 10,
    	'post_type' => 'post',
    	'post_status' => 'publish',
    	'cat' => 2
    );
    $myposts = query_posts($args);
    foreach($myposts as $post) : setup_postdata($post); ?>
    	<h3><?php the_title(); ?></h3>
    <?php endforeach; ?>

    [Please post code snippets between backticks or use the code button.]

Viewing 1 replies (of 1 total)
  • The topic ‘Pagination on Loop OUTSIDE of Blog Page’ is closed to new replies.