Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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 ?

    #137738

    Actually 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/

    #137739

    Using 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 ?

    #137740

    We 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 ?

    #137741

    Hey!

    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

    #137742

    OK.

    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 ?

    #137743

    Btw 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;
    }

    #137744

    Thanks! This definitely helped.

    At least it looks nicer.

    Gave this theme five stars.

    Wish I could give it eleven !

    #137745

    1) 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.

    http://www.pigomultimedia.com/testing_area/beta_site_9V/

    #137746

    Hi 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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Search Function digs too deep and pick up HTML code’ is closed to new replies.