• I’d like to display the search term and the matching results the sidebar – for example, if someone searched my site for the terms “widget factory”, I’d like to display this:

    Search results for “widget factory”:
    <Widget Factory Post 1 Title>
    <Widget Factory Post 2 Title>
    etc.

    Anyone know how to do this? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jdmcmillan

    (@jdmcmillan)

    Does anyone know whether this is even possible?

    Thread Starter jdmcmillan

    (@jdmcmillan)

    Well figured out the first part.

    It would be “Search results for “<?php echo $s; ?>”:

    Putting <?php echo $s; ?> puts the search term in there.

    Now just need some help with listing the post titles that match the search term.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Listing search terms and matching result titles in sidebar’ is closed to new replies.