• Resolved cw17s0n

    (@cw17s0n)


    First great plug in thank you.

    The problem I am having is when the post type you are viewing has a taxonomy term that is also associated with another post type it gets added to the count.

    Example, I have 2 cpt: solutions and stories and I have a taxonomy suppliers, with the terms: Supplier 1, Supplier 2, Supplier 3.

    I create a solutions post, assign it Supplier 1 & Supplier 2, create a stories post, assign it Supplier 2 & Supplier 3. When I look at either archive it will say there are 2 entries for supplier 2, even though there is only one post.

    I believe this same issue was brought up by anointed here

    Just wondering if any fix had come of it, I have tried the 2.0 dev version with no luck.

    http://wordpress.org/extend/plugins/faceted-search-widget/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter cw17s0n

    (@cw17s0n)

    I’ve made some progress, except it’s not an ideal solution, only works for one post type. On line 197 of the 2.0 dev version if I hard code the post type it works as I want it to.

    $query = new WP_Query( array( 'post_type' => 'solutions', 'tax_query' => $tax_query ) );

    Any suggestions on how to make it so it dynamically adds the post type?

    Thread Starter cw17s0n

    (@cw17s0n)

    And I’ve got it, $post_type = get_post_type(); before the foreach and $query = new WP_Query( array( 'post_type' => $post_type, 'tax_query' => $tax_query ) ); on what was line 197. Again, thanks for the great plugin.

    hm, just wondering if this plugin is supported?
    Any chance this problem gets generally solved?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Faceted Search Widget] Showing taxonomies from custom post types not currently viewed.’ is closed to new replies.