WordPress documentation – WP_Query arguments

I’ve been looking for a list all WP_Query arguments.

This looks obvious, but http://codex.wordpress.org/Function_Reference/WP_Query isn’t helpful at all, “post_type” is mentioned only in an example, and arguments like “posts_per_page” aren’t even there.

Related posts

Leave a Reply

2 comments

  1. I believe this is what you’re looking for.

    (You’re right to look for it on the class documentation…i think the reason why it’s on query_posts() is because that (and get_posts()) is meant to be the primarily used function to get posts.)