Sorry, I missed that post. It’s on my to-do list, so I will do it in the very coming days, it’s not a difficult feature to add 🙂
One question themev, though. The permalink for the custom post type doesn’t use the category/taxonomy, they just use the post type. So whatever you “pick”, it will be the same… or I need to rewrite the URL which is, programming-wise, really different from that the plugin is doing now…
Thread Starter
themev
(@themev)
We are using a custom post type as follows
register_post_type(‘article’,
array(
‘labels’ => $labels,
‘public’ => true,
‘has_archive’ => true,
‘show_in_nav_menus’ => true,
‘supports’ => array(‘title’, ‘editor’, ‘thumbnail’, ‘author’, ‘excerpt’, ‘comments’, ‘revisions’),
‘taxonomies’ => array(‘post_tag’, ‘category’)
)
);
We are then using a custom permalink structure for the post type
$article_structure = ‘/%category%/%article%’;
$wp_rewrite->add_permastruct(‘article’, $article_structure, false);
Maybe what we are attempting is outside the scope of this plugin?
It’s outside of the scope of the plugin because it implies playing with “redirections” and hacking into WordPress much more. Right now I can guarantee the stability of my plugin, but if I start to cover the custom post types and taxonomies I know there will be many bugs and issues depending on each configuration.
I am interested in looking into that issue if somebody has an idea how to implement the usage of taxonomies for custom post types in a very clean way. I will definitely add the feature to the plugin if it’s clean/proper enough 🙂 Maybe I will look at it myself later too.