Forums

Searcing titles (1 post)

  1. filsozluk
    Member
    Posted 1 year ago #

    Hello!

    Changing
    $search .= "{$searchand}((post_title LIKE '{$n}{$term}{$n}') OR (post_content LIKE '{$n}{$term}{$n}'))";

    to:

    $search .= "{$searchand}((post_title='{$term}'))";
    lets you exact search in post-titles. But this case it doesn't let you terms with blank.(Finds "apple" but doesn't "apple juice")

    How can i fix this?

Topic Closed

This topic has been closed to new replies.

About this Topic