WordPress.org

Ready to get started?Download WordPress

Forums

Query Multiple Taxonomies
[resolved] Setting 'Default Query' Results Page (2 posts)

  1. conancat
    Member
    Posted 3 years ago #

    Hi there! I am using the Query Multiple taxonomies and I'm loving it, thanks Scribu for the awesome plugin!

    I am currently using the dropdown widget option in a template to query 3 different taxonomy for a custom post type. One problem I come across is that when I select the default options together for all 3 dropdowns, which are the empty first select options together and click Submit, it will lead to homepage.

    Is there a way that I set a default page for the results when all three dropdown values == empty, then go to this page? I have set the Reset link to this page ID as of like this:

    function my_qmt_base_url() {
      return get_page_link( 3226 );
    }
    add_filter( 'qmt_reset_url', 'my_qmt_base_url' );

    Is there a way to do the same for when the values are empty?

    http://wordpress.org/extend/plugins/query-multiple-taxonomies/

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    Just replace 'qmt_reset_url' with 'qmt_base_url'.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic