WordPress.org

Ready to get started?Download WordPress

Forums

How to get variable of search (2 posts)

  1. moslemblog
    Member
    Posted 7 years ago #

    in WP search result page is
    http://www.aaa.com/search/pisanggoreng
    or ?s=pisanggoreng

    how can i capture this "pisanggoreng" as a variable?
    Sorry I am newbie .. and my questions is silly

    cheers,

  2. iand
    Member
    Posted 7 years ago #

    Try <?php echo $s; ?> I think that will output what you want. Or just the $s bit if you don't want to print the result.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags