WordPress.org

Ready to get started?Download WordPress

Forums

Change the searchword before searching (4 posts)

  1. lynx
    Member
    Posted 8 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
    Member
    Posted 8 years ago #

    ---

  3. VaamYob
    Member
    Posted 8 years ago #

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

  4. lynx
    Member
    Posted 8 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

Tags

No tags yet.