приклад з моїм кодом
$query = get_posts(array(
'post_type' => 'attachment',
'posts_per_page' => "1",
'tax_query' => array(
'relation' => 'AND',
array(
'taxonomy' => 'wpmf-category',
'field' => 'term_id',
'include_children' => false,
'operator' => 'IN',
'terms' => $term->term_id)
))
);
- Сторінка:
- 1