Provides a simple API for mapping requests to callback functions.
As of April 2026, WP Router is a WordPress URL mapping plugin with 900 active installations and a 3.7/5 rating from 3 reviews. It has been downloaded 17K+ times in total. Requires WordPress 3.0+ and PHP false+. Available on WordPress.org since 2011. Last updated 13 years ago — may have compatibility concerns. Download volume is stable this week. Top alternative: Custom URL Mapper.
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
Интересный плагин
Me and my team can’t get this plugin to run. Can’t find the classes and can’t manually include either for some reason. Great idea, probably worked back then, but not now for one reason or another.
So we suggest others also using modern WP installations to find their own way in the routing or to find another ready made script, sofar we haven’t found any good yet though.
Been messing around with it. Very nice.
| WordPress | 3.0+ requiredTested up to 3.4.2 |
| PHP | false+ required |
wp_router_placeholder_postmeta filter for adding additional meta to the placeholder pagePlugin data sourced from WordPress.org. Analysis and metrics by PluginSift.