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/
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/
I'm thinking that there has to be a way to edit the {{reset-url}} placeholder, I just haven't found it yet.
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.
You must log in to post.