Jump to content

Archived

This topic is now archived and is closed to further replies.

janpeeters

Search doesn't find words on page

Recommended Posts

janpeeters+    31
janpeeters

Hi,

 

I just noticed that on www.lovo.nu the search field only finds words in the page/postloop section. Not in other parts of the page. Is this a know problem?

 

Jan

Share this post


Link to post
Share on other sites
Simon    247
Simon

Thats how wordpress search works, by searching the post content.

Share this post


Link to post
Share on other sites
janpeeters+    31
janpeeters

Hi Simon_P,

 

So you mean that the WP search functionality isn't altered in DMS to be able to search even through things that Pagelines DMS puts on a page? That's a real pity. It would restrict the freedom with which I'd hoped to use DMS. Well glad to hear this now, so I can adept my design strategy to this. And I'd love it if you would consider creating a custom search tool for this to become possible. Thanks for considering.

 

Do you know of a 'on site' search implementation that search through the whole of rendered pages? 

Thanks

 

Jan

Share this post


Link to post
Share on other sites
Rob    547
Rob

Jan,

 

The WP search function is the same for all frameworks, platforms, themes or even DMS.  It's just the way it works and it's impossible for us (or anyone else) to change that.  There are better search engines, such as Relevanssi, but I use Google's Adsense.  It's a much better search engine... searches everything, understands to bypass global content, and produces results with ads you can earn money from.  I think they also offer a no-ads Custom Search, but don't quote me.  It's free, and yields customizable results (within parameters).


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
janpeeters+    31
janpeeters

Hi Rob,

 

I'll have a look at a Google search implementation. Thanks for that suggestion.

I've experimented with relevanssi in the past, great indeed, but only posts and pages I tend to remember.

 

Best, Jan

Share this post


Link to post
Share on other sites
Rob    547
Rob

I wouldn't be surprised about Relevanssi but Google is great.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

  • Similar Content

    • John Olsson
      By John Olsson+
      Hello, i'm working on a webshop, and got this code to really boost the search within WP. But when adding this code to functions.php the front end media library search flipped totally, and not working at all, any ideas what's the problem?
      function atom_search_where($where){ global $wpdb; if (is_search()) $where .= "OR (t.name LIKE '%".get_search_query()."%' AND {$wpdb->posts}.post_status = 'publish')"; return $where; } function atom_search_join($join){ global $wpdb; if (is_search()) $join .= "LEFT JOIN {$wpdb->term_relationships} tr ON {$wpdb->posts}.ID = tr.object_id INNER JOIN {$wpdb->term_taxonomy} tt ON tt.term_taxonomy_id=tr.term_taxonomy_id INNER JOIN {$wpdb->terms} t ON t.term_id = tt.term_id"; return $join; } function atom_search_groupby($groupby){ global $wpdb; // we need to group on post ID $groupby_id = "{$wpdb->posts}.ID"; if(!is_search() || strpos($groupby, $groupby_id) !== false) return $groupby; // groupby was empty, use ours if(!strlen(trim($groupby))) return $groupby_id; // wasn't empty, append ours return $groupby.", ".$groupby_id; } add_filter('posts_where','atom_search_where'); add_filter('posts_join', 'atom_search_join'); add_filter('posts_groupby', 'atom_search_groupby');  
    • Queue-it
      By Queue-it+
      HI,
      Search function doesn't seem to work. 
      When ever searching for something it redirect to the home page and add the search string to the url.
      For example searching for "cases" it would display https://queue-it.com/?s=cases
      Do you know how to solve that? 
    • MissT
      By MissT+
      Would be great to have the ability to include a search option within menus and within Splashup - is this possible?
    • balfred1345
      By balfred1345
      null When I tested Search using the search field in Navi, it throws the error as shown in pastebin: http://pastebin.com/DJ079bmy
      Is there a fix for this? If there is no fix, can you please tell me how to disable search in Navi?
      Thanks,
      Bruce
    • MissT
      By MissT+
      Hi there,
      Just wondering if there is a reason why there is no search option within Multimenu as there is with Navi - would be good if it did have it and it worked in a similar way and you could switch it off when you need to.
      Many thanks.
×