WordPress.org

Ready to get started?Download WordPress

Forums

If people push the space bar then do a search, it breaks the UTF-8 titles (2 posts)

  1. a4jp.com
    Member
    Posted 2 years ago #

    If people push the space bar then do a search, it breaks the UTF-8 titles and just shows question marks in diamonds. :(

    Any ideas on fixing this?

    My website is here: agreatdream.com

    Glen

  2. a4jp.com
    Member
    Posted 2 years ago #

    <span style="margin-bottom:7px;">
                <a href="<?php the_permalink() ?>" ><?php $title = get_the_title(); $keys= explode(" ",$s); $title = preg_replace('/('.implode('|', $keys) .')/iu', '<strong class="search-excerpt"></strong>',	$title);?><?php echo $title; ?></a></span>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.