I have a form in the sidebar on the following WP site — http://www.mattpealing-server.co.uk/~devchewengco/
Here is part of the code I'm using for the results page:
<?php if (isset($_GET['ApplianceType']) || isset($_GET['brand'])) : // search filter form ?>
<?php query_posts($query_string . '&orderby=title&order=ASC') ?>
<?php get_template_part('loop', 'feed-products' ); ?>
<?php wp_reset_query(); ?>
<?php else : // display categories as default ?>
<?php get_template_part('include', 'feed-categories-products' ); ?>
<?php endif; ?>
But the statement is always returning false. Originally, I had it without the isset()
function, but that was giving me undefined variable errors
Can anyone see what I'm doing wrong?