Tagged: advanced editor, excerpt, results, search, Search result
-
AuthorPosts
-
August 27, 2013 at 12:58 pm #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.
August 28, 2013 at 4:04 am #137777Hey,
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
August 28, 2013 at 9:02 am #137778Thanks 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.
August 29, 2013 at 7:42 am #137779I 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);August 29, 2013 at 8:37 am #137780Tested 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?
August 29, 2013 at 10:04 am #137781ok, 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
August 30, 2013 at 5:24 am #137782Hi!
Great, glad Relevanssi solved the problem I tagged it for Kriesi in case he can improve the default search somehow.
Best regards,
Peter
September 5, 2013 at 12:30 pm #137783 -
AuthorPosts
- The topic ‘Search results and Advanced Editor’ is closed to new replies.