WordPress.org

Ready to get started?Download WordPress

Forums

Query Multiple Taxonomies
[resolved] Reset - takes me back to the home page (3 posts)

  1. MCM
    Member
    Posted 1 year ago #

    How do I get the reset button to take user back to the previous page?

    At the moment it takes the user back to the Home page :(

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

  2. dannyjimmy
    Member
    Posted 1 year ago #

    I'm thinking that there has to be a way to edit the {{reset-url}} placeholder, I just haven't found it yet.

  3. dannyjimmy
    Member
    Posted 1 year ago #

    Here's how:

    https://github.com/scribu/wp-query-multiple-taxonomies/wiki/Changing-URLs

    If you want to send users to a specific URL when they press the Reset button, you can do it using the 'qmt_reset_url' filter:
    (ADDED TO THE THEME'S FUNCTIONS.PHP FILE)
    
    <?php
    function my_qmt_reset_url( $reset_url ) {
        return 'http://example.com/some-other-url/';
    }
    add_filter( 'qmt_reset_url', 'my_qmt_reset_url' );

    Just make that go to your all-posts page. (which may or may not be your homepage)

    That way, when you "RESET", i.e. remove all filters, you'll be seeing all posts.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags