【发布时间】:2021-06-19 13:52:54
【问题描述】:
谁能帮忙解答这个问题?
我在下面有这个默认查询,需要从结果中排除 3 个 ID(5707、5782、5755),我无法猜测在这个查询结构中添加 NOT IN。请帮忙!
$agents_query = array(
'post_type' => 'agent',
'posts_per_page' => $number_of_posts,
'paged' => $paged,
'orderby' => 'rand',
);
$agents_query = inspiry_agents_sort_args( $agents_query );
$agent_listing_query = new WP_Query( $agents_query );
【问题讨论】:
-
是的,它帮了很多忙。非常感谢。