$p_args = array(
"post_type" => "post",
"v_sortby" => "date",
"numberposts" => 10,
"showposts" => 10,
"posts_per_page" => 10
);
我可以通过
这样的网址对其进行排序www.example.com/?post_type=post&v_sortby=date&numberposts=10&showposts=10
然后我如何将这些写入URL表单?
$args = array(
"post_type" => "post",
"meta_query" => array (
array (
"key" => "quality",
"value" => "hd",
"compare" => "IN"
)
)
);
答案 0 :(得分:0)
答案 1 :(得分:0)
我使用http_build_query()为以下参数生成url
<?php
$args = array(
"post_type" => "post",
"meta_query" => array (
array (
"key" => "quality",
"value" => "hd",
"compare" => "IN"
)
)
);
echo http_build_query($args);
?>
在我的页面上回显了url查询。