• Hi there!!!

    I am having issue using the search box of my website. The search only looks at the titles of the posts and nothing else. Any thoughts?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Are you using the default search box that ships with WP, or a search plugin?

    The search only looks at the titles of the posts and nothing else.

    How do you know this for sure? Try creating a new post with a single, randomly made-up word, such as “sildhlie” for its content. Publish it, and then search for that word.

    Thread Starter silverj93

    (@silverj93)

    I am not sure to be completely honest. There is a code in the search.php file (doesn’t that mean it is not the default search box being used?). Could you look at the search code for me perhaps?

    What theme are you using?

    Try my trick above and see what happens.

    Thread Starter silverj93

    (@silverj93)

    I did try the trick. It only searches by title.

    And I am using a weird/highly customized theme that the company I work for provided. Should I send the code that is in search.php? Would that help you be able to determine what is happening? Thanks so much!

    You can paste it in pastebin.com and post a link here.

    See this:
    http://codex.wordpress.org/Forum_Welcome#Posting_Code

    Thread Starter silverj93

    (@silverj93)

    http://pastebin.com/R5HaAW2Y

    Here you go! Sorry it took so long. This code is what is in te search.php file. It looks like it should look into the content but it doesnt 🙁 Also would it be possible to search by tags as well?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Searching Posts’ is closed to new replies.