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

  1. Nukeface
    Posted 4 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

    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?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Page Numbers
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic