Forums

category__and not fully working (3 posts)

  1. nightstalker101
    Member
    Posted 1 year ago #

    Hi,

    we are trying to query posts in an external file for an ajax query. The Loop and everything works fine, but each function that accepts multiple values like : category__and(array(1,2)) or in_category(array(1,2)) work only with one value like in_category(1) work without any problem.

    What could be the issue?

  2. vtxyzzy
    Member
    Posted 1 year ago #

    You are assigning values like this, aren't you?

    $args = array(
       'category__and' => array(1,2),
    );
    query_posts($args);
  3. nightstalker101
    Member
    Posted 1 year ago #

    Yes, I do.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.