check if search results exists
This commit is contained in:
parent
9423a7bff0
commit
c1ca62ea2e
2 changed files with 23 additions and 10 deletions
|
|
@ -484,5 +484,7 @@ function search_excerpt_highlight() {
|
|||
$text = wp_strip_all_tags( get_the_content() );
|
||||
$query = explode(' ', get_search_query());
|
||||
|
||||
print_r($query);
|
||||
|
||||
echo generate_excerpt($text, $query, $length);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue