• Hi, I need to make a query to get posts from two or more categories.
    Now I’m using this to get posts from one category:

    // Define the query
    $args1 = array();
    $args1['post_type'] = 'post';
    $args1['post_status'] = 'publish';
    $args1['taxonomy'] = 'category';
    $args1['taxonomy_slug'] = 'my-taxonomy-slug';
    $args1['date_column'] = 'my-date';
    $args1['date_min'] = date('Ymd');
    $args1['orderby'] = 'my-date';
    $args1['order'] = 'ASC';

    How can I select posts form more taxonomy slugs?

    https://www.ads-software.com/plugins/custom-content-type-manager/

  • The topic ‘GetPostsQuery search in two categories’ is closed to new replies.