Is there a ‘rake routes’ for wordpress?

Is there an equivalent to ‘rake routes’ in php/wordpress that would spit out all the available wordpress url paths available? 1 Answer 1 var_dump( $GLOBALS[‘wp_rewrite’] ); this is as close as you’ll get. Anyway, there’re plugins like the “MonkeyMan Rewrite Analyzer” and toschos T5 Rewrite plugins that will allow you other nice things too.

wordpress – load a template based on the URI

I have a number of custom of post types – i.e. ‘windows’, ‘doors’, ‘garages’ and I want to load a custom template (special.php) whenever my wordpress site has a url that looks like this: www.mysite.com/windows/ www.mysite.com/doors/ www.mysite.com/garages/ I don’t want to use pages, as it is not appropriate in this case (I have given a … Read more

Debugging WP routing

For some posts, I see 404 page, even though posts exist, where is the place in WP where using permalink is decided what object needs to rendered? Thanks! 1 Answer 1 Jan Fabry wrote a very useful plugin that I think it would be helpful for you to analyze your rewrite rules.

Custom routing for plugins

I am making a plugin that needs a page that can be accessed from the outside, pretty much like an API, and have the url like so, http://xxxxx/custom_method?parameter=xxxxx&something=xxxx is there a clean way to do this? Thanks in advance. 1 Answer 1 The WordPress Way of doing it is using query_vars so first you add … Read more