Forums

Search Everything - highlights also in links! (2 posts)

  1. nr2012
    Member
    Posted 1 year ago #

    I know this subject was discussed before;

    http://wordpress.org/support/topic/plugin-search-everything-highlight-search-terms-no-usable-if-search-term-is-in-link-title?replies=4

    but unfortunately the link to the fix isn't working anymore.

    Does anyone know how to solve this Problem?

    thx

  2. jtonline
    Member
    Posted 1 year ago #

    I've just downloaded Search Everything & discovered the issue of garbled post titles on my results page when searched for word/s are in the post title & highlighting is turned on in the plugin.

    To fix this behaviour I suggest you check the search.php file for your chosen theme. Mine was using:

    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>

    to output the post titles in the search results.

    I changed it to:

    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>

    That subtle change fixed the problem on my site.

Topic Closed

This topic has been closed to new replies.

About this Topic