WP_Query类查询页面ID
示例:
[pcsh lang=”php” tab_size=”4” message=”” hl_lines=”” provider=”manual”]
$args = array(
'post_type' => 'page',
'name' => 'randtarot'
);
$query = new WP_Query( $args );
[/pcsh]
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Dev!