Forums Forums Search & Filter Pro Custom post type sharing taxonomy displays posts from different post type

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #264345

    Hi,

    I have a problem. I have 2 custom post types “cases” and “news” I am sharing the same taxonomy named “themes”. Now, for Search and filter I have selected one custom post type only but still shows posts from cases on the filter.

    Is there a way to keep using the same taxonomies but exclude post type if not selected?

    I have added a taxonomy filter.

    Thanks.

    Anonymous
    #264369

    @Travis ?

    Trevor
    #264400

    My name is Trevor (hehe).

    If you are using the same taxonomy across multiple Post Types, so that, even if the search is for one Post Type, the count might also add those from the other post types. Since ‘term splitting’ was introduced in WordPress, it is not recommended to use the same taxonomy across multiple post types – instead you should use Custom Fields to do this, as these can be applied to multiple post types. If you need to use taxonomies, you need to have/make separate custom taxonomies for each post type, even if they use the same terms.

    Anonymous
    #264416

    Hi @Trevor,

    Thanks for the reply. So what do you suggest to do? Add a ACF taxonomy picker to the “cases” post type which is shared from the “themes” page correct?

    Thanks!

    Anonymous
    #264418

    @Trevor I was thinking about GTA and Trevis lol.

    Trevor
    #264428

    I am not sure how you would go about this in ACF, you would need to test and see.

Viewing 6 posts - 1 through 6 (of 6 total)