[Plugin: Ajaxy Live Search] Change post type template
-
Hello!
Im using Ajaxy Live Search. Need to change founded posts template for post type “clinics”. It is possible to do this in plugin settings but i need do add custom php code in it. It is because i need to compare five post custom fields values and add result into cookie in
<a>
tag.Now template looks like:
<a href="{post_link}"><span class="sf_text">{post_title}</span></a>
Need:
<a href="{post_link}" onclick="$.cookie('item_tarif', '*result_variable*', { expires: 10, path: '/', domain: '*domain*' });"><span class="sf_text">{post_title}</span></a>
Maybe i need to add special filter in functions.php file.
Hope somebody help!
- The topic ‘[Plugin: Ajaxy Live Search] Change post type template’ is closed to new replies.