3

Under Settings > Reading, there is a field called Blog pages show at most __ posts. Since all of my queries are based off of the main query, I need to find out what's stored in that field. How would I do that, especially outside of the loop?

1

1 Answer 1

11

You can get that value with

get_option('posts_per_page');

Not the answer you're looking for? Browse other questions tagged or ask your own question.