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
https://forums.phpfreaks.com/topic/225365-edit-wordpress-default-search-problem/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.