WordPress.org

Ready to get started?Download WordPress

Forums

You searched for... (5 posts)

  1. codergurl
    Member
    Posted 10 years ago #

    <?php if ($s) { echo 'You searched for '.$s; } ?>

  2. jackiefg
    Member
    Posted 10 years ago #

    That worked great - and simply. I just put the code at the top of my index.php page and then when I search it adds that message to the top.
    Thanks very much. I love adding these little 'tweaks'.

  3. skeen
    Member
    Posted 10 years ago #

    Glad you liked it.
    Thanks codegurl!
    One other suggestion is to also put the code in the title tags.

  4. marzar00
    Member
    Posted 10 years ago #

    What would be really good is that if the result of the search returned no results instead of the blank boring page with no content a message saying _____ could not be found. And then the search feild again so you can research.
    MWP
    Coming Jan 2004

  5. skeen
    Member
    Posted 10 years ago #

    marzar00... I believe the CVS version has a message saying, "Sorry, no posts matched your search criteria" -- so this is yet to be released.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.