Results 1 to 3 of 3

Thread: Modify search for just title

  1. #1
    Thread Starter
    Veteran doctorcilantro's Avatar
    Join Date
    Oct 2010
    Location
    Saudi Arabia
    Posts
    759
    Thanks
    2
    Thanked 26 Times in 16 Posts

    Modify search for just title

    Currently a simple search returns 364 results, and takes forever, because it is searching the description content.

    Title should be enough.

    I have tried editing the WP query.php file in two places with no effects:

    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}'))";

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,693
    Thanks
    166
    Thanked 3,387 Times in 3,258 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    Veteran doctorcilantro's Avatar
    Join Date
    Oct 2010
    Location
    Saudi Arabia
    Posts
    759
    Thanks
    2
    Thanked 26 Times in 16 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: October 13th, 2011, 08:04 AM
  2. Modify Search Box
    By mstrong in forum JobRoller General Discussion
    Replies: 5
    Last Post: March 8th, 2011, 09:22 AM
  3. Blog title error- duplicating the title span error
    By jjherman in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: December 8th, 2010, 07:53 AM
  4. <title> Blog | Page Title </title>
    By tnich in forum Help Using ClassiPress
    Replies: 4
    Last Post: May 13th, 2010, 08:58 AM