Forums › Forums › Search & Filter Pro › Using Ajax in template – how ?
- This topic has 7 replies, 2 voices, and was last updated 8 years, 11 months ago by
Anonymous.
-
Anonymous(Private) August 5, 2016 at 12:18 am #53512
hello
First thanks for this great plugin.
I have a little issue and i hope you can help me to sort it out.I am using WORDPRESS + Search and filter pro + Pods
With Pods, I created a pod called ‘standard’
With search and filter -> I created a search form connected to ‘standard’ pods.I can display list of standards and search form using shortcode methods and i put the link in page called standard.
Then when I click on one of the item display, I want to continue to see the searchbar and if I click on it, I want ajax to be activated to display the updated list of standards.
Then what I did is :
In Pod, I created a page called “standards/*” and link a template called standard details : so that all pages before url xxxxx/standards will called the template “standard details”.In the template standard details, I use
$name= $mypod->field(‘title’);
echo $name;to display different field (here title for example).
Then I added the search form :
<?php echo do_shortcode(‘[searchandfilter id=”2243″]’); ?>It can display the details + search form. But when I click on the search form, there is no update using ajax.
How can I include ajax in template ?
Is there a better to proceed ?Thanks for your help.
Stéphane -
AuthorPosts