ansonphong / postworld

Wordpress Theme Development Framework
GNU General Public License v2.0
7 stars 0 forks source link

pw_register_feed() only returning 10 #44

Closed ansonphong closed 10 years ago

ansonphong commented 10 years ago

Hi Haidy When I run pw_register_feed(), then it's only returning the first 10 results, even if 'post_count' is set to 200. I have to add a 'posts_per_page' value in order to make it return more than 10.

Let's make post_count an alias for posts_per_page.

hmikhail commented 10 years ago

pw_query uses wp_query, and after googling, when you don't set posts_per_page, then it falls back to use the default posts per page option you have set in Settings >> Reading >> Blog pages show at most.

http://stackoverflow.com/questions/12943236/wp-query-does-not-return-all-entries

ansonphong commented 10 years ago

ok, so we'll just use posts_per_page