Change Live Search so it searches for default post type.
-
Hi, very good plugin. I am really enjoying it.
However, I am trying to make it so the plugin searches for the default post type “post” instead of kbe_knowledgebase.
I tried to modify the plugin directly by changing the st_add_live_search() function to:
function st_add_live_search () { ?> <script type="text/javascript"> jQuery(document).ready(function() { var kbe = jQuery('#live-search #s').val(); jQuery('#live-search #s').liveSearch({url: '<?php echo home_url(); ?>/?ajax=on&post_type=post&s='}); }); </script> <?php }
However it does not work. Any chance you can easily help me modify this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Change Live Search so it searches for default post type.’ is closed to new replies.