• Hi! I’m trying your plugin to filter content in my website.

    I have three custom post types:
    – news
    – articles
    – stories

    Each of them are associated to a particular taxonomy:
    – tax 1 for news
    – tax 2 for articles
    – tax 3 for stories

    And also all of the three CPT shares the same WP built-in taxonomy (the classic category).

    I’m displaying the filter in each of the three archive pages for the CPTs. The filter have two fields, one for the category and one for the taxonomy. Ej in the news page archive:

    All Categories – All tax-1 terms – Search button

    If I select a term from the taxonomy dropdown, the filter works fine as i get the posts that have that term. But if i select a category from the first dropdown, i’m getting posts from the other CPTs that belongs to that category, instead of the ‘news’ posts.

    The shortcode i’m using is this:

    <?php echo do_shortcode( '[searchandfilter fields="category,tax-1" submit_label="Filter" search_placeholder="Buscar..."]' ); ?>

    https://ww.wp.xz.cn/plugins/search-filter/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Same category for different CPT’ is closed to new replies.