• Hi there,

    I have build a custom query_post.
    In code it looks to every category after /catetory/ in the url.
    With my query I want posts that have ALL that categories.

    I know I have to work with ‘category__and’ in this case, but the strange thing is, that, with two or more categories, it also returns posts that have one of that categories.

    For example see: http://gamesscore.nl/category/playstation-3/actie/
    I have print the query_post on the page. It’s:

    category__and=6,32&caller_get_posts=1&orderby=&order=DESC&gdsr_sort=&gdsr_order=&paged=0&posts_per_page=10

    But it return also a post that not has category 32 (actie).

    What am I doing wrong???

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘'category__and' issue’ is closed to new replies.