WordPress.org

Ready to get started?Download WordPress

Forums

WP Page Numbers
custom query, not able to include $paged (1 post)

  1. Nukeface
    Member
    Posted 2 years ago #

    Im using a custom way of displaying posts, which I have to due to sticky posts' position manipulation so I'm displaying posts on a per post basis using the following:

    foreach( $post_IDs as $gotten ){
    	$post = get_post( $gotten );
    	setup_postdata( $post );
        //doing my thing
    endforeach;

    So here I am, looping through an array of post_id's, which were obtained using $paged in the query, but of course not making a difference later on when I'm getting it on a post by post basis. Strangest thing is that the posts display correctly (20 per page) until the posts run out but the pagination continues till its own last page (calculating default pagination @ 10 posts per page)

    Does anyone, anywhere, have a possible solution for this?

    http://wordpress.org/extend/plugins/wp-page-numbers/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic