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
You can get that value with
get_option('posts_per_page');