• Resolved hoeksms

    (@hoeksms)


    I have a WordPress site that has multiple custom post types. Each custom type has its own custom taxonomies, but they als share a few custom taxonomies.

    Here’s a simplified example:

    Custom post type 1: books; taxonomies: publisher, genre, year_of_publication
    Custom post type 2: magazines; taxonomies: publisher, genre, month_of_publication
    Custom post type 3: cartoons; taxonomies: publisher, genre, illustrator

    When I try to filter a list of specific custom post type, I get no results. When I debug the queries I can clearly see that the query searches in multiple post types (why?), and it adds taxonomy filters from the other custom types.

    When I dig deeper I can see that there are two things that are going wrong:
    1. Whenever I try to filter either of these three lists, the query searches in post type 1 and 2, and not in post type 3(!), This results in an empty list when I try to filter post type 3.
    2. Whenever I try to filter either of these three lists, the query will add filters from another post type: filtering cartoons will add year_of_publication as a GET variable (which adds ‘AND 0 = 1’ to the query), again resulting in an empty result.

    My question is: can ‘Admin Taxonomy Filter’ handle shared taxonomies?

Viewing 1 replies (of 1 total)
  • Thread Starter hoeksms

    (@hoeksms)

    It turns out that the problem was not caused by the plugin, but by something else.
    So this problem is resolved.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.