WordPress.org

Ready to get started?Download WordPress

Forums

Search Everything
Highlighting not working correctly inside link title attribute (2 posts)

  1. Matthias
    Member
    Posted 1 year ago #

    I added the post title to the title attribute of my "show post" links, f.e.

    <a href="http://mydomain/categoryname/my-demosearch-article" title="Show post: My Demosearch Article">Show post</a>

    When I search for "Demosearch", the plugin highlights the word IN the title of the link which results in broken code:

    <a href="http://mydomain/categoryname/my-demosearch-article" title="Show post: My <span class=" search-everything-highlight-color"="" style="background-color:#FFFF00">Demosearch Article">Show post</a>

    I think this should be excluded from the search.

    Cheers,
    Matthias

    http://wordpress.org/extend/plugins/search-everything/

  2. Matthias
    Member
    Posted 1 year ago #

    Hmmm... I found the problem - it was me, what else? ;). I added the following snippet to content.php:

    I added the following snippet to content.php:
    (...) title="Show post: <?php the_title(); ?>" (...)

    ...but I don't understand exactly why it gets highlighted when I put this in the title attribute. Any ideas?

    Thanks,
    Matthias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic