Главная / It статьи / It 1

It 1

$posts = get_posts([ ‘post_type’ => ‘advert’, ‘tax_query’ => [ [ ‘taxonomy’ => ‘advert-category’, ‘field’ => ‘slug’, // ‘tax_id’, ‘term_id’, ‘name’, ‘slug’, ‘term_taxonomy_id’ ‘terms’ => ‘realty’, // ID, string, array ‘operator’ => ‘NOT IN’ ], [ ‘taxonomy’ => ‘advert-tag’, ‘field’ => ‘tax_id’, ‘terms’ => [14, 15], ‘operator’: ‘IN’ ] ] ]);

Добавить комментарий

Ваш адрес email не будет опубликован.