Search results to include all post types and sections
Started by
etstech
, Sep 25 2012 02:24 PM
search sections search results post types
7 replies to this topic
#1
Posted 25 September 2012 - 02:24 PM
I noticed that the Pagelines search only shows results for content published in a standard post or page. However, I am creating a site layout that heavily uses sections and other post types including Banners, Boxes, Highlights, Hero Units, and ContentBox. None of the content published in these are being found via the search. This is a HUGE problem!
The ideal result should be that if any given Page displays content from a Box, ContentBox, etc., that the Search should show this Page (not just the Box, etc) in the results.
Can anyone help out with a solution?
The ideal result should be that if any given Page displays content from a Box, ContentBox, etc., that the Search should show this Page (not just the Box, etc) in the results.
Can anyone help out with a solution?
#2
Posted 25 September 2012 - 02:32 PM
This issue has never been addressed before, but you make a good point. I don't know how the PageLines search is built into the theme, but I can find out if it would be possible to incorporate other sections into the search.
#3
Posted 25 September 2012 - 03:40 PM
The framework does not modify the standard wordpress search functionality.
If you want to add custom post types to the main search query you will have to use a wordpress filter.
Here was the first google result
If you want to add custom post types to the main search query you will have to use a wordpress filter.
Here was the first google result
#4
Posted 25 September 2012 - 05:00 PM
I appreciate your clarification and link. That might work for custom post types, but what about sections (e.g. ContentBox)?
#5
Posted 25 September 2012 - 05:02 PM
banners, features etc are all custom post types, but no the contentbox will not be searchable, the content in it is not an actual post.
Its actually stored in the post_meta table. I dont think there is anyway to adapt the wp search for that.
Its actually stored in the post_meta table. I dont think there is anyway to adapt the wp search for that.
#6
Posted 01 November 2012 - 10:53 AM
Relevanssi plugin (a free version) replaces WP default search and can index custom fields (i.e. post_meta for contentbox ??? maybe, haven't tried it)
Hope it helps.
Hope it helps.
#7
Posted 01 November 2012 - 01:04 PM
I found a solutions with the . It works like Google Custom Search where it crawls the site and builds the search results based on the whole page content resulting in searching the from content in sections and boxes. The search returns the page the section or box is on.
I have it on a staging site right now so I haven't gotten into customizing the search results through Swiftype. There are some nice features.
And, you do need to sign up for but it is free.
I have it on a staging site right now so I haven't gotten into customizing the search results through Swiftype. There are some nice features.
And, you do need to sign up for but it is free.
#8
Posted 01 November 2012 - 03:41 PM
@ellenmva Thanks for posting a solution.
Also tagged with one or more of these keywords: search, sections, search results, post types
Change text in searchfield, not possible by custom CSS?Started by fordtheword , Yesterday, 02:10 PM |
|
|
||
PageLines Framework →
Technical Support →
LESS/CSS error has nearly crashed siteStarted by eglashcreative , 15 May 2013 |
|
|
||
PageLines Framework →
Technical Support →
Thoughts on header with search / widget functionalityStarted by eglashcreative , 09 May 2013 |
|
|
||
PageLines Framework →
Customizations →
How can I create a new custom section?Started by andreia24 , 26 Apr 2013 |
|
|
||
Search ResultsStarted by suzyo , 17 Apr 2013 |
|
|











