开发者

How to set a variable in Wordpress's $wp_query

I'm trying to use the set() function, to set $wp_query->query_vars['paged'].

What's the proper syntax for this funct开发者_如何学Pythonion?

Thanks.


global $wp_query;
$wp_query->set('name','value');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜