Ready to get started?Download WordPress


Change the searchword before searching (4 posts)

  1. lynx
    Posted 9 years ago #

    How can I make a hack or plugin which parses the search-string someone searched for and do some changes on this, if it matches some predefined keywords.

    The goal is to change the searchterm before the search or any other plugins use it.

  2. VaamYob
    Posted 9 years ago #


  3. VaamYob
    Posted 9 years ago #

    You can use javascript to check and change the value in the search box before the form is submitted.

  4. lynx
    Posted 9 years ago #

    I want to make it php based.
    I found the function get_posts() which handles the searching too. I can implement my stuff directly in the source, but thats not very fancy...

    I would like to change the $q['s'] variable with a plugin and pass it back to wordpress before searching...

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.