-
AuthorPosts
-
August 27, 2013 at 8:26 am #28499
Please go to…
http://www.pigomultimedia.com/testing_area/beta_site_9V/
====================
1) Go to the “Search” icon within the top navigation area
2) Type in “Grey”
3) You will find that the results go deep and and also show multiple sub-directories that travel sideways (not vertically) as you put your
mouse on each result.
4) The word “grey” will pick up pages that have grey buttons even though the word “grey” is no where on the page
How do we limit the search function to only pick up what is published on the page and NOT in the HTML code ?
August 27, 2013 at 8:35 am #137738Actually we just use the standard search query and we have no influence on the search results. You can use this plugin to maximize the search power of your website: SearchWP
Refer to this link in order to integrate the plugin on ajax search: http://kriesi.at/documentation/enfold/use-searchwp-instead-of-the-standard-search/
August 27, 2013 at 9:15 am #137739Using the “Relevanssi” plugin has its own issues.
So how do we get the Search function to ONLY pick up the posts, pages and portfolios ?
How do we get it to ignore the Shop items ?
August 27, 2013 at 9:57 am #137740We are using “Better Search” plugin and it works great.
http://wordpress.org/plugins/better-search/
How do we get it to tie-in with the Ajax Search like you did with the “Relevanssi” plugin ?
August 27, 2013 at 10:13 am #137741Hey!
I don’t know this plugin and you need to ask the plugin author. The documentation doesn’t mention a search function which can be used to query the search results (similar to relevanssi_do_query()…).
Regards,
Peter
August 27, 2013 at 10:19 am #137742OK.
Well is there a way to get the Ajax Search function to ONLY pick up the posts, pages and portfolios ?
How do we get it to ignore the Shop items ?
August 27, 2013 at 10:23 am #137743Btw it seems like your excerpt contains html tags which can break the html structure of the search result field. Add following code to the bottom of functions.php to remove these tags from the search result excerpt:
add_filter('avf_ajax_search_excerpt','avia_strip_search_result_tags', 10, 1);
function avia_strip_search_result_tags($content){
$content = strip_tags($content,'');
return $content;
}August 27, 2013 at 10:30 am #137744Thanks! This definitely helped.
At least it looks nicer.
Gave this theme five stars.
Wish I could give it eleven !
August 27, 2013 at 10:58 am #1377451) Is there a way to get the Ajax Search function to ONLY pick up the posts, pages and portfolios ?
How do we get it to ignore the Shop items ?
2) If I insert the word “office” I find that some of the pages do not actually have the word “office” on them.
August 27, 2013 at 11:52 am #137746Hi turner2f,
As Peter mentioned the search function isn’t custom to the theme. Its just the regular WordPress core search query.
If you want to modify that you would need to use either a plugin that also has support for its own php query so you can modify the ajax code as Peter mentioned or look into a freelance developer to customize the plugin to do so.
Regards,
Devin
-
AuthorPosts
- The topic ‘Search Function digs too deep and pick up HTML code’ is closed to new replies.