We can filter our posts with a URL query string:
We can also use a similar syntax for
get_posts('param=value'); just passes the string to
new WP_Query('param=value');, so it follows that these work the same.
While these all seem to have the same syntax, the URL query string supports different parameters.
- I don't see
subpost_iddocumented anywhere in the WP_Query class, yet it seems to do something with the URL (although I can't figure out exactly what)
category__indoesn't work with the URL query string.
After much searching, I finally found this site that lists the supported URL query string variables, but not sure what all of them do.
Where is the documentation for these URL query string variables?
WP_Query supports many more parameters that don't seem to be supported in the URL query. Why doesn't the URL query string just get passed directly to WP_Query?