Jump to content

Edit wordpress default search problem.


the-sexy-slug

Recommended Posts

Hello

 

I would like a little help. What I would like to do is to use the default wordpress search function and instead of it searching the blog database for results what I would like to do is to use the keyword that was entered in the wordpress blog search box and display a page that will just basically echo that search term. I do not want it to show results from my blog like posts or pages just the search term. I know that sounds strange but can it be done and if it can how is it done. I am not very knowledgeable on the wordpress coding.

 

Thanks.

Link to comment
Share on other sites

Thank you thorpe for your help and sorry for posting in the wrong forum.

 

I have tried what you suggested in the search.php file in my wordpress test blog and it has given me a syntax error:-

 

Parse error: syntax error, unexpected '{'

 

Also yes you are correct I am not great at php but I am very slowly learning.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.