1 Mayıs 2012 Salı

WordPress başlıkta arama kodu

1.open wp-includes/query.php
2.search for
$search .= "{$searchand}((post_title LIKE '{$n}{$term}{$n}') OR (post_content LIKE '{$n}{$term}{$n}'))";
3.remove the OR part.
to be specific
$search .= "{$searchand}((post_title LIKE '{$n}{$term}{$n}'))";
4.if u want exact title search, change it to
$search .= "{$searchand}((post_title='{$term}'))";
LOL
-sangeetha :)