selecting only "any" in all dropdowns
-
Hello,
I have three drop down menus. When I select at least one option from either one of them and hit “submit” I get correct results. But when “any” is selected in all drop down menus the result is the blog page (the site has a “static” page as a home page, not a blog page). And what I would like to have is the list of all results with maybe a note that nothing was selected (though I am aware that a “note” idea is possibly a separate issue.
About my setup.
I have a template page called “biographies” that lists all posts from custom post type “Biographies”. The template is identical to the archive page with the addition of
<?php query_posts( 'post_type=biographies'); ?>
right before
<?php if ( have_posts() ) : ?>
When I filter results from that page I can see that the “archive” page is used for displaying results. And clicking on an individual result leads to a single page.I tried setting a base url with the code plugin author recommended:
function my_qmt_base_url( $base ) { return get_bloginfo('url').'/'; } add_filter( 'qmt_base_url', 'my_qmt_base_url' );
but that doesn’t change anything. Setting the “url” to “/listings/” which is the page that calls “biographies” template mentioned above, ends in a list of all results, regardless of drop down menus selections ( I can see that everything stays on “biographies” page.
I am using the lates WordPress version, with a child theme that I customized from a default twentytwelve theme.
Any help with this would be greatly appreciated.
Thanks.https://www.ads-software.com/extend/plugins/query-multiple-taxonomies/
- The topic ‘selecting only "any" in all dropdowns’ is closed to new replies.