Linux 软件免费装

WP Router

开发者 jbrinley
更新时间 2012年8月6日 23:06
捐献地址: 去捐款
PHP版本: 3.0 及以上
WordPress版本: 3.4

标签

URL mapping callback functions

下载

详情介绍:

WordPress's rewrite rules and query variables provide a powerful system for mapping URL strings to collections of posts. Every request is parsed into query variables and turned into a SQL query via $wp_query->query(). Sometimes, though, you don't want to display a list of posts. You just want a URL to map to a callback function, with the output displayed in place of posts in whatever theme you happen to be using. That's where WP Router comes in. It handles all the messy bits of registering post types, query variables, rewrite rules, etc., and lets you write code to do what you want it to do. One function call is all it takes to map a URL to your designated callback function and display the return value in the page. Created by Flightless

安装:

  1. Download and unzip the plugin
  2. Upload the WP-Router folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins' menu in WordPress
  4. You should see the sample page at http://example.org/wp_router/sample/. Apart from that, there is no public UI for this plugin. You will not see any changes unless the plugin's API is called by another active plugin.

更新日志:

0.5 0.4 0.3.3 0.3.2 0.3.1 0.3 0.2 0.1