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 Answer
1

You can get that value with

get_option('posts_per_page');

Leave a Reply

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