Documentación de WordPress - Argumentos WP_Query
-
16-10-2019 - |
Pregunta
He estado buscando una lista todos los argumentos WP_Query.
Esto parece obvio, pero http://codex.wordpress.org/function_reference/wp_query No es útil en absoluto, "post_type" se menciona solo en un ejemplo, y argumentos como "Post_per_page" ni siquiera están allí.
Solución
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.)
Otros consejos
Hi @Wordpressor:
The arguments for WP_Query()
are documented on the query_posts()
page on the Codex:
And for WordPress 3.1 you can also find the most complete documentation for the WP_Query
args on lines 1872 through 2705 of /wp-includes/query.php
. :-)
-Mike