WordPress.org

Ready to get started?Download WordPress

Forums

Faceted Search Widget
returns same count on all cats (7 posts)

  1. Anointed
    Member
    Posted 2 years ago #

    If I do a search for 'xyz' I get the results back, but the widget shows all cats listed with (9) as though there are 9 results in every single category and custom tax term.

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

  2. Ben Balter
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry for the trouble. The latest version (1.4) will appear in the repository momentarily and should resolve the issue.

  3. Anointed
    Member
    Posted 2 years ago #

    I upgraded but now widget shows all taxonomy terms from everything
    http://screensnapr.com/v/LUWIgw.png

    debug bar is going nuts as well:
    http://pastebin.com/fzTMbt04

    total queries 7905, crushing server when activated.

    *Is there any way to get the facited search widget to act more like:
    http://www.modernbathroom.com/bathroom-vanities/bathroom-vanities.aspx?q=NTk5_NTcw#q=&o=2&p=1&i=24&d=MjQsNDgsOTY&h=4751&l=248

    notice auto loading upon each click etc, lots of sites doing this but so far I can't find a plugin vs.

  4. Ben Balter
    Member
    Plugin Author

    Posted 2 years ago #

    Did the latest version (1.5) resolve the MySQL issue for you?

  5. Anointed
    Member
    Posted 2 years ago #

    Yes, 1.5 does remove those errors. Thank you

    One thing I did notice is that facted is pulling in all the taxonomies, not just the ones that belong to the post-type being displayed.

    example:
    On the blog archive page sidebar, faceted is showing 'product categories' as a selector. This taxonomy is only registered to my 'product' post-type (woocommerce) so it is not relevant to the page the widget is being displayed on.

    Not sure what logic it would take, but it would be a nice future addition if we could assign what taxonomies are going to be displayed. then with some standard logic which I already understand, I can apply appropriate faceted widgets to different sections of my website.

    #2 suggestion:
    dropdown selectors would be nice. On my dev blog I have over 500 terms so the list is crazy long. (I use wp functions as terms to organize my code snippets) this might work, as currently I can't select more than one term per taxonomy group anyhow, which of course would be a great future addition as well.

    Either way, thank you the widget works, and it should work on some of my smaller sites just fine.

    *****Wanna have some real fun?*****
    check this out, would make a killer addition
    https://github.com/boonebgorges/bp-better-directories

  6. Ben Balter
    Member
    Plugin Author

    Posted 2 years ago #

    Glad to hear! It was a really stupid mistake (command to reset the query was outside the command that looped through the taxonomies so the taxonomy queries snowballed).

    So the logic should be as follows:

    1. Get all taxonomies
    2. Get all terms within the taxonomy
    3. Count the number of posts in the current query matching that term
    4. If there are any matches, spit out the term, otherwise continue

    Is it just showing the taxonomy label with no terms?

    I guess the smarter way to do it, which may save queries in the long run, would be to get an array of all the post_types in the current query, then only get taxonomies that describe those post types.

    If you take a look at the Development Version, which is very much, still just a development version, there's a few more choices in the widget options which may help, and a very rough pass at ajaxing the search results.

    As for dropdowns, I think it would be possible, just would have to check the compatibility of wp_dropdown_categories with wp_list_categories

  7. justabloke7676
    Member
    Posted 2 years ago #

    this plugin needs serious help. i installed, placed widget in widget area. it asked for a title. WHAT? that's it? is there no setup? how about make a plugin that indexes what and where you want? No customization? the development version is slightly better but still like 3 selections and still didn't work. did you consider making it search pages, post, custom post types, tags, images etc.? Fix it or delete it off of WP plugins. Your' just going to drive people crazy with this broken 1/2 build plugin. Complete waste of time.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic