[wp-hackers] Get query variables and tags
Ade Walker
photofantaisie at gmail.com
Wed Feb 4 18:08:39 GMT 2009
Thanks again DD.
Yes, you're right of course, it accepts 'tag', but I found I needed to pass
the variables as an array to WP_Query, like this:
$tag = get_query_var('tag');
$storylist = new WP_Query(array(
'tag' => $tag,
'showposts' => '30'
));
Seems to work fine. Thanks again for your assistance :-)
Ade.
2009/2/4 DD32 <wordpress at dd32.id.au>
> WP_Query DOES accept 'tag'
> http://trac.wordpress.org/browser/trunk/wp-includes/query.php#L1178 &
> http://trac.wordpress.org/browser/trunk/wp-includes/query.php#L1852
>
> So you might want to recheck you were using the right stuff :)
>
More information about the wp-hackers
mailing list