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

Oct 16, 2011 1 Comment by 1626 Views

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…



Geeks, Internet

About the author

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. Freelancer.com Profile | Libnary.com | Pattern Lockscreen

One Response to “Number of Posts Per Page not Working on Recent Post Plus or WordPress Query”

  1. vivek says:

    nice..keep sharing.!

Leave a Reply

DMCA.com Protection Status
© 2011 GensanBlog.com - All about General Santos City. Sitemap | Privacy Policy | Guidelines


Coded and Designed by Erwin Bantilan