Wordpress custom post_type templates
- by roman
We are currently working on a Wordpress page that reuses data from another Application. To keep things clean, but still use most wordpress features, we decided to use custom post_type settings (register_post_type) for this data.
Now the Problem is, that while accessing these Posts is no problem, the Permalink's to them fail with 404's.
We currently work around this issue by adding an action to the "template_redirect" hook that essentially performs a query_posts for the name and our custom types. If query_posts found something we load our custom post templates with locate_template.
Although this is working, it does not look like a clean solution - can anyone here propose a better way to tackle our problems?