Forums Forums Search & Filter Pro Multiple post types one taxonomy. Search in the following post types: only one

Viewing 5 posts - 1 through 5 (of 5 total)
  • Anonymous
    #137382

    I have this taxonomy connected to two diffrent post types. Search and filter is given only one of the post types in the setting “Search in the following post types”.

    But in the front page loop it will display all the terms that have post connected to them even though there is no post with that term from the setting “Search in the following post types”.

    Display results method:custom
    Given it the right url “Template Options Results URL”
    Rebuild the cache multiple times

    TL;DR I have multiple post types and connected multiple of the same taxonomies to them, when creating a specific filter for only one post type it still shows all there terms that have posts in them, I was suspecting that it only would show terms if it has the specific post in them.

    Trevor
    #137389

    I think this is a ‘feature’ of WordPress. WordPress allows you to use the same taxonomy across multiple post types. This is a legacy feature and has to remain or it would break sites if they changed WordPress to stop it. However, it is not good practice to do this. You should keep a on-to-one relationship between post types and taxonomies. Otherwise, what you are experiencing will happen.

    Trevor
    #137498
    This reply has been marked as private.
    Anonymous
    #137502

    Hey Trevor, would I see a new setting with this new version or should it work as is? I see nothing new and the behaviour is the same.

    Trevor
    #137504
    This reply has been marked as private.
Viewing 5 posts - 1 through 5 (of 5 total)