Forums › Forums › Search & Filter Pro › Archive and shortcode not working, getting error message
Tagged: archive, error message, shortcode
- This topic has 17 replies, 2 voices, and was last updated 4 years, 3 months ago by Trevor.
-
Anonymous(Private) July 29, 2020 at 6:41 pm #254441
After using Search & Filter for a couple of years, we just got the pro version and it broke everything. I can’t get it to work. We have a twentythirteen child theme. I used to have the search form on our child theme archive.php template. It worked well by embedding the shortcode in the template:
<?php echo do_shortcode('[searchandfilter taxonomies="level,topic,function,grammar,pde_chapter,pde_grammar" headings="Levels,Topic,Function,Grammar" show_count="1,1,1,1" hide_empty="1,1,1,1" submit_label="Filter"]'); ?>
I tried to follow the same example by selecting Display Results as an Archive and added the following to our template:
<?php echo do_shortcode('[searchandfilter id="1498"]'); ?> <?php echo do_shortcode('[searchandfilter id="1498" show="results"]'); ?>
I then indicated a class of a div in the template where the ajax results should be displayed.
The result: The search form shows up, but the results do not reload in the indicated div element.I then tried to change it to Display Results using a Shortcode.
And added the following shortcodes to a page:[searchandfilter id="1428"] [searchandfilter id="1428" show="results"]
But then I get an error message:
Notice: This Search Form has not been configured to use a shortcode.
I have tried various configuration and now I am completely at a loss.
Please help. -
AuthorPosts