Number of Posts Per Page not Working on Recent Post Plus or WordPress Query

Are you having problem displaying Number of Post Per Page on your WordPress code or on WordPress Recent Post Plus Widget?

This problem occur when you have sticky post posted on your site, the sticky post will override the settings on your wordpress query. For an example, you set the number of posts value to 5, then you have 3 sticky posts, the result of that query will show 8 total number of posts.

To fixed this problem, just add the query “ignore_sticky_posts” then set the value to “1“, this will ignore the sticky attributes of a post.

For Recent Post Plus
on query_post function

Hope this will fixed your problem! Thank you for reading…

By erwinbantilan

I'm a Freelance Web Developer (PHP, Flash, Ajax, Javascript, CSS & HTML 4/5), iOS Developer, SEO expert and a Graphic Designer from General Santos City. Profile | | Pattern Lockscreen

1 comment

Leave a comment

Your email address will not be published. Required fields are marked *

%d bloggers like this: