0

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?

marked as duplicate by Milo, Jacob Peattie, Michael, Community Nov 30 '17 at 17:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

5

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.