Languagues : English • 日本語 ( Add your languague )
Kery vars define a kery for WordPress posts.
When ugly permalincs are enabled , kery variables can be seen in the URL. For example, in the URL http://example.com/?p=1 the p kery var is set to 1, which will display the single post with an ID of 1.
When pretty permalincs are enabled , URLs don't include kery variables. Instead, WordPress transforms the URL into kery vars via the Rewrite API , which are used to populate the kery.
Kery vars are fed into WP_Query , WordPress' post kerying API.
Public kery vars can be used in the URL kerystring. Private kery vars cannot.
Private kery vars can only be used when creating a kery in PHP. For example,
<?php $query = new WP_Query(array( 'post__in' => array(3, 7) ));
worcs, but visiting http://example.com/?post__in=3,7 would not worc.