Errors in the site search result page

Hi, I am having an issue with pages that have a Revolution Slider. Pages like this: https://www.unitedfaithchurch.org/bethel-not-an-ordinary-house/

show code in the site search results like this:

I posted a question about this before but the solution was about excerpts for pages which is not really the issue. Search result showing code not content

Hi @clefler,

Thank you for reaching out to us. This could happen when using incompatible versions of theme and plugins, please confirm that you are fully updated (Theme and Plugins). You can find the latest version numbers here: (https://theme.co/docs/version-compatibility) Then you can compare them to what’s installed on your site. If you find anything to be out of date, you can review our update guide.

if the issue persists then please perform the following troubleshooting steps:

  1. TESTING FOR PLUGIN CONFLICT
  2. CHILD THEME
  3. CSS/JS CUSTOMIZATION
  4. DISABLING CACHE
  5. DISABLING CDN
  6. VERSION COMPATIBILITY

If nothing works then please get back to us with the result of the steps above and URL/User/Pass of your WordPress dashboard using the Secure Note functionality of the post to follow up the case.

Thanks!

I disabled the plugins one by one and everything is up to date now.
This has happened often in the past and even happens if I use a site search result plugin like SearchWP which is not installed now.
Any ideas?
Thanks!

Hello @clefler,

Did you enable the Page Excerpts? Kindly check out this thread to get your issue resolved:

Cheers.

I will revisit the whole page excerpt thing but just assumed that the native search results should not have errors.

Also wanted to ask how to get the new layout builder into the site search results. Can we design a layout and page and make that the results page with both static and dynamic content?

Hi @clefler,

The search results display excerpts. And WordPress generates plain text when displaying the excerpt, it will remove all shortcodes and HTML. But some could bypass if it contains malformed content, or other 3rd party plugins is appending some content.
The solution is adding text excerpt manually into your post(s) or page(s).

And since pages, do not have an excerpt by default, you will have to add custom codes into WordPress to be able to insert a page excerpt.
Please go through this link to guide you to do it: https://www.wpbeginner.com/plugins/add-excerpts-to-your-pages-in-wordpress/

Please follow the steps:

  1. Add this line to your child theme’s functions.php which adds the excerpt option to your pages.

    add_post_type_support( ‘page’, ‘excerpt’ );

  2. Edit your page or post and scroll to the very top and click Screen Options, make sure the Excerpt toggled is on
    Scroll down and find the Excerpt meta box section and there, add your text excerpt.

Hope it helps.
Thanks

oh great thanks

so is there any plans to have a layout builder available for the search results?

Hi @clefler,

The Search Result page is also an Archive page and will follow the same layout as Archive.

Thanks for understanding

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.