[wp-hackers] Re: wp-hackers Digest, Vol 37, Issue 40
jdingman at gmail.com
Mon Feb 18 18:32:11 GMT 2008
Great, thanks for the suggestion.
Is there anything, maybe in more detail, that anyone else (or yourself
Jennifer), can offer to get this working? I'm not an experienced
programmer, but I know how to hack my way around with PHP.
> Message: 7
> Date: Mon, 18 Feb 2008 08:49:28 -0800
> From: Jennifer Hodgdon <yahgrp at poplarware.com>
> Subject: Re: [wp-hackers] changing the default search parameters
> To: wp-hackers at lists.automattic.com
> Message-ID: <47B9B718.7020605 at poplarware.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> I think it is possible to do, if you define your own custom rewrite
> rules to convert your form of the URL to result in the same query
> variables that WP uses for its form of the search URL.
> Suggested reading:
> http://codex.wordpress.org/Query_Overview - to understand how WP
> converts URLs into pages of posts - this will also point you to
> sections of the WP code, in which you can find the default rewrite rules
> http://codex.wordpress.org/Custom_Queries - has examples of how to use
> rewrite rules and query variables in plugins
> (And of course, anything you can do in a plugin can be done in the
> functions.php file of a theme, too.)
> Jonathan Dingman wrote:
> > I'm trying to customize a theme here and part of the customization I
> want to
> > do is to change the search parameters.
> > I would like to change it from domain.com/?s=oldtest to something like
> > domain.com/search?hl=en&q=newtest
> > so changing s= to q= and adding the search?hl=en to it.
> Jennifer Hodgdon * Poplar ProductivityWare
> Drupal/WordPress Sites, Themes, Modules/Plugins
> Custom Web Programming, Web Databases
> Modeling/Analysis/Palm OS Software
More information about the wp-hackers