Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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.

    #137777

    Hey,

    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.

    Regards,

    Ismael

    #137778

    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.

    #137779

    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);

    #137780

    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?

    #137781

    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:

    https://kriesi.at/support/topic/instant-search-not-matching-search-results#post-135415

    #137782

    Hi!

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

    Best regards,

    Peter

    #137783

    Hey!

    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,

    Kriesi

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Search results and Advanced Editor’ is closed to new replies.