📜  类别名称 wp 查询 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:52.530000             🧑  作者: Mango

代码示例1
$query = new WP_Query( array( 'category_name' => 'staff' ) );

cat (int) – use category id.
category_name (string) – use category slug.
category__and (array) – use category id.
category__in (array) – use category id.
category__not_in (array) – use category id.