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]

此处评论已关闭