Category Archives: XHTML

query_vars

query_vars
query_vars is a filter on the query variables used by the WP_Query class (and stored in $wp_request->public_query_vars).
The initial array consists of the following query variables:

m
p
posts
w
cat
withcomments
s
search
exact
sentence
debug
calendar
page
paged
more
tb
pb
author
order
orderby
year
monthnum
day
hour
minute
second
name
category_name
feed
author_name
static
pagename
page_id
error
comments_popup
attachment
attachment_id
subpost
subpost_id
preview

Your hook would accept an array, add an item to the array, and return the array.
function add_my_query_var($vars) {
$vars[] = ‘my_var’;
return $vars;
}

add_filter(‘query_vars’, ‘add_my_query_var’);

JavaScript Performance Tricks

Performance Hints
var Statements
Use var statements when possible. Not only is it good programming practice, it can speed up your code by allowing the compiler to generate special code to access the variables. For example, you could rewrite
function sum(a) {
result = 0;
for (i=0; i < [...]

Link types: bookmark, index, glossary, copyright, index..

User agents, search engines, etc. may interpret these link types in a variety of ways. For example, user agents may provide access to linked documents through a navigation bar.