• Resolved wpfreund14

    (@wpfreund14)


    Hi!

    In a post there are words between lower und higher quotes (ALT+0132 and ALT+0147) and Relevanssi don’t find this post if I search with these words.

    What have I do to make Relevanssi finds them?

    Thanks!

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

    (@msaari)

    Relevanssi removes all punctuation, including these quotes, so they should not be a problem at all.

    Can you elaborate a bit? What exactly is happening here, how are you searching and what, exactly?

    Thread Starter wpfreund14

    (@wpfreund14)

    H!
    Yes I can.

    This is the text readable in Browser:
    FTTH means ?fibre to the home“ and

    This is the same in editor:
    <strong>FTTH</strong> means ?<strong>f</strong>ibre <strong>t</strong>o <strong>t</strong>he <strong>h</strong>ome“ and

    and HTML source code:
    <strong>FTTH</strong> means ?<strong>f</strong>ibre <strong>t</strong>o <strong>t</strong>he <strong>h</strong>ome“ and

    Thank you

    Thread Starter wpfreund14

    (@wpfreund14)

    …and I’m searching for fibre
    and it doesn’t found.

    Plugin Author Mikko Saari

    (@msaari)

    Ah. The problem is not the quotes, but the HTML tags. In Relevanssi indexing, <strong>f</strong>ibre becomes f ibre.

    Add this to your theme functions.php and rebuild the index:

    add_filter('relevanssi_post_content', 'rlv_strip_tags');
    function rlv_strip_tags($content) {
    	$content = preg_replace('/<[a-zA-Z\/][^>]*>/', '', $content);
    	return $content;
    }
    Thread Starter wpfreund14

    (@wpfreund14)

    It works. Thanks!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Words don’t find between german quotes’ is closed to new replies.