I'm looking for the "proper" way to add a new post type to WordPress.
How can a plugin handle URLs within WP, so that any request for mysite.com/wordpress/foo/123 is able to be handled by the plugin?
Is there a way to register my plugin as a handler for some path hierarchies, eg at the 404 stage etc?
Can I register a URLs with WordPress, so that it knows about them when generating a list of URLs in the site?
I'd prefer to do this cleanly via a plugin, meaning no hand-editing of .htaccess required, and all plugin files inside the plugin dir.