the-sexy-slug Posted January 23, 2011 Share Posted January 23, 2011 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. Quote Link to comment Share on other sites More sharing options...
trq Posted January 23, 2011 Share Posted January 23, 2011 Sounds like you might not be very knowledgeable about php all round. Just point the search form at a script like..... <?php if (isset($_POST['search'])) { echo "You searched for " . htmlentities($_POST['search']); } Quote Link to comment Share on other sites More sharing options...
the-sexy-slug Posted January 23, 2011 Author Share Posted January 23, 2011 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. Quote Link to comment Share on other sites More sharing options...
trq Posted January 23, 2011 Share Posted January 23, 2011 We need to see your code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.