Viewing 1 replies (of 1 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Yes, there is. Use relevanssi_highlight_terms() function in your theme files like this:

    global $wp_query;
    if (isset($wp_query->query_vars['s'])) {
    $title = relevanssi_highlight_terms($title, $wp_query->query_vars['s']);
    }
    echo $title;
Viewing 1 replies (of 1 total)
  • The topic ‘highlight search term in a post's title and summary?’ is closed to new replies.