Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #28512

    It seems like that content added using the Advanced Editor doesn’t show up in the search results. The search result page display only the title of the page and no excerpt. E.g. when searching for the word ‘theme’ which is in the page Example. In the search result page, only the title Example is displayed, but no excerpt.

    Content added using the default editor shows up in the search results.



    If you want the excerpt to show on the search results page. Edit the page, click Screen Options then enable the Excerpt metabox. You can specify the excerpt manually. It will show on the search results page.




    Thanks for the reply. But than I have to manually specify an excerpt for dozens of pages? Wouldn’t be better that it’s done automatically, same as for pages created with the default editor? For those pages you don’t have to specify the excerpt manually. I would appreciate it if it’s fixed in a theme update.


    I didn’t test this fix but you can try to use the get_the_excerpt filter to include the entire page content (including shortcodes) into the search excerpt. Add following code to the bottom of functions.php

    function avia_do_shortcode_search_excerpt( $excerpt ) {
    $excerpt = do_shortcode($excerpt);
    return $excerpt;
    add_filter( 'get_the_excerpt', 'avia_do_shortcode_search_excerpt', 5, 1);


    Tested this code, Dude, and it shows in the search results pages, created with the Avia Layout Builder.

    However: I have the same problem: do we really specify excerpts on a huge number of pages manually, so that the search result page shows excerpts?


    ok, I found a perfect solution, that shows automatically the excerpts, too – thanks to Dude’s code modification with using the plugin Relevanssi:

    Here is the code modification, so that Relevanssi works perfect with ENFOLD:



    Great, glad Relevanssi solved the problem I tagged it for Kriesi in case he can improve the default search somehow.

    Best regards,




    Hey! I have improved the default output but pages built with the tempalte builder will always need a manual excerpt because layoutbuilder elements would completely mess up the search result layout, especially fullwidth elements :)

    Best regards,


Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Search results and Advanced Editor’ is closed to new replies.