WordPress.org

Ready to get started?Download WordPress

Forums

Drill down search on categories/tags/custom taxonomy (10 posts)

  1. mnaugendre
    Member
    Posted 4 years ago #

    I would like to put on a special page a drill-down search on categorie, tags and a custom taxonomy called 'logiciels'.

    1) I have used the sidebar widget in order to test, but it only finds categories and tags, and not my custom taxonomy, that has been created with the plugin More Taxonomies.
    Anyway I can make the drill-down search find the custom taxonomy?

    2) I don't know which code I must put on the page in order to get the drill-down search. I have read something about the Taxonomy_Drill_Down_Widget, but I have no idea how to use it (I'm quite new at WordPress, and not much of e developer).

    Thanks for helping.

  2. scribu
    Member
    Posted 4 years ago #

    1) See http://wordpress.org/support/topic/query-multiple-taxonomies-doesnt-show-custom-taxonomies

    2) You can use the_widget(), but it's a lot easier to add it from WP-Admin -> Appearance -> Widgets.

  3. mnaugendre
    Member
    Posted 4 years ago #

    Thanks for your answer.

    1) I have posted a question in the other topic.

    2) Isn't WP-Admin -> Appearance -> Widgets for the sidebar only?
    I would like to put the drill down search on a special page, in order to display the list of the returned posts instead of the posts themselves; as I have already done for the archives page.

  4. scribu
    Member
    Posted 4 years ago #

    They don't have to be sidebars per-se. A more appropriate term for them would be widgetized areas. Here's a neat tutorial:

    http://www.studiograsshopper.ch/code-snippets/how-to-add-a-widgetised-area-in-a-wordpress-theme/

  5. mnaugendre
    Member
    Posted 4 years ago #

    Thanks a lot, scribu, that works like a charm ;-)

    A couple of questions, so I can refine the result:

    - is there a way to control the order the different taxonomies appear in the drill-down widget? As it is, I have: 1) categories, 2) tags and 3) custom taxonomies, and I would like the custom taxonomy to be the uppermost in the page.

    - would it be possible to choose list or dropdown for each taxonomy, instead of having a unique choice for all of them?

  6. BBW2010
    Member
    Posted 4 years ago #

    I've been following these threads with interest. I'm also using GD CPT Tools. I had similar issues to other users, these are now solved, thank you all.
    I am now so, so close to being able to do what I want to do. The only function I cannot make work is the 'Category' drill down.
    My site can be seen here: http://durban.directrouter.com/~wwwappl/
    I want to be able to select from the widget (in the front end), for instance, 'Category'='Sound Systems'; 'Region'='North West'; 'Environment'='Church'; 'Technology'='Bose'; 'Sector'='Private Sector'; 'Purpose'='Voice and Speech', and have it return the appropriate results. This all works perfectly with the custom taxonomies, but if I, say, just choose 'Category'='Sound Systems', the submit button returns only the home page, not all articles in the 'Sound System' category. What am I doing wrong?

  7. scribu
    Member
    Posted 4 years ago #

    - is there a way to control the order the different taxonomies appear in the drill-down widget? As it is, I have: 1) categories, 2) tags and 3) custom taxonomies, and I would like the custom taxonomy to be the uppermost in the page.

    - would it be possible to choose list or dropdown for each taxonomy, instead of having a unique choice for all of them?

    You can just add multiple widgets with only one taxonomy selected in each.

  8. scribu
    Member
    Posted 4 years ago #

    This all works perfectly with the custom taxonomies, but if I, say, just choose 'Category'='Sound Systems', the submit button returns only the home page, not all articles in the 'Sound System' category. What am I doing wrong?

    Well, when you just select Category = Sound Systems, the QMT plugin lets WordPress display the category as usual. So, I'm guessing it's a problem with your theme.

    A workaround would be to use a custom hierarchical taxonomy instead of built-in categories.

  9. BBW2010
    Member
    Posted 4 years ago #

    Thanks for the reply, but the same occurs with two different themes. When I select Category=Sound Systems using the QMT widget, and hit submit, I only get the home page.
    I understand the workaround, and of course it's an option, but as every article on the site is now tagged under multiple default WP categories as well as the custom taxonomies, this would take me some time to sort out (I think).

  10. scribu
    Member
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic