开发者

WP Plugin Custom Search

I want to make costume search plugin for Wordpress 3.0.5. Please look at here first HERE

as you can see at that website there is a dropdown with Country, AREA, TYPE. and when we click find. the URL will produce URL GET like this /?countryId=3&areaId=7&typeId=13

The question is. how i can make a search plugin with that $_GET, or ca开发者_如何转开发n somebody give me link reference how to that?


I'm confused what you are trying to do, a plugin? Or functionality that handles the 'find' results?

If you just want the functionality, create a PAGE, call it 'find' and then set the 'TEMPLATE' of that page to a custom template. Create a custom page template by going via the wordpress codec

  • http://codex.wordpress.org/Pages
  • http://codex.wordpress.org/Pages#Page_Templates
  • http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

Start by looking at the 'single.php' page, which is your standard wordpress template. Once inside the template you use standard PHP to process the $_GET data and query your database.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜