Jump to content
etstech

Search results to include all post types and sections

Recommended Posts

etstech

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?

Share this post


Link to post
Share on other sites
catrina

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.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
etstech

I appreciate your clarification and link. That might work for custom post types, but what about sections (e.g. ContentBox)?

Share this post


Link to post
Share on other sites
Simon

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.

Share this post


Link to post
Share on other sites
TourKick (Clifford P)

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)

http://www.relevanssi.com/features/

Hope it helps.

Share this post


Link to post
Share on other sites
ellenmva

I found a solutions with the Swiftype Plugin. 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 Swiftype but it is free.


Ellen Moore

Pagelines Developer

www.elsue.com www.betterdms.com

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • mtaus
      By mtaus+
      How can I remove the Search function from NavPro?
    • yemoonyah
      By yemoonyah+
      Hi, even though I just got a SSL certificate, I can't get the green padlock to appear due to the following error:
      :A file with an insecure url of "http://yemoonyah.com/wp-content/plugins/pl-section-boxes/check.svg" was loaded via the javascript file: https://yemoonyah.com/wp-includes/js/jquery/jquery.js?ver=1.12.4 on line 3. The insecure URL may not be directly contained in the script file and may exist elsewhere."
      I figured if I delete and re-install the plugin it might fix the problem but will my boxes on the website still be there? Or do I have to redesign everything all over again if I delete the plugin and then re-install it?
    • cstudio
      By cstudio
      Hello,
      I need some help!  I am trying to add a Square booking script.  When I add it to a embed section it crashes the page editor and I am unable to save the page version.  I have tried using different browsers with the same result.
       I can add the script on the backend in the word press content area and get it to show and work, but it look terrible.  A page with in a page.  http://www.zoeanastacia.com/booking/.
      I need help getting the page editor to work properly or to make the wp content section to not look like an 90's iframe.
      Thanks
    • oseehys
      By oseehys+
      Hello There,
      So i want to use platform 5 and DMS sections on a single page, i am using a child theme with pinspro as my main theme and i activated platform 5, the only problem am having so far is the fixed option, my navbars are not aligning to their default size, and it will be great if platform 5 header and footer section will function, has anyone used this option, how can i make the best use of platform 5 and DMS on a site
      Cheers
    • yemoonyah
      By yemoonyah+
      Hi,
      I tried to make a simple change on my opt-in page today by reordering two sections.
      Now they won't save and whatever I do, the same 2 section will be stuck to the top.
      This is a huge problem since it is my opt-in page!
      http://yemoonyah.com/quiz
      (I'm on the latest WP & PL version)
      Thanks.
       
×