📅  最后修改于: 2022-03-11 14:54:52.202000             🧑  作者: Mango
代码示例3
$args = array(
'post_type' => 'my_custom_type'
'cat' => $cat_id,
);
$wp_query = new WP_Query( $args );
$wp_query->post->ID