My picture
Friday, January 09, 2009
Tags:
Search
Content
BY TYPE
BY CATEGORY
BY DATE
BY PUBLICATION
Updates
FEEDS
MAILING LIST
Enter your email address above to start
receiving email updates from this site.
This Page
Simpler WordPress Search URLs
April 19, 2006

WordPress-powered URLs ending in /search/foo (where “foo” is your search term) now work the same way as the old-school format of index.php?s=foo. They’re cleaner, more intuitive, and darned easier on the eyes.

The only problem? The search form included in most templates produces old-school URLs instead of the newer ones. Thankfully, there’s a simple, elegant workaround using the WordPress WP_Query class.