I have my own custom post type under:
wordpress/custom
But when I open any item of this post type they open in:
wordpress/archives/custom/title
Why there's 'archives' and how to get rid of this from my urls?
The taxonomy is registered like below:
register_taxonomy("our_frontpage_types", array("frontpage"), array("hierarchical" => true, "label" => "Categories", "singular_label" => "Category", "rewrite" => true));
And the post is registered like:
add_action('init', 'fp_register');
- UPDATE *
Ok, now I know it was a problem with permalinks, BUT /%category%/%postname% is far from perfection. Is there something like %section%/%postname%?
'with_front' => false
inside the rewrite array for your post type, eg.'rewrite' => array( 'slug' => 'your-slug', 'with_front' => false )
... the same can be done with taxonomies to.with_front
to false will remove that part of the URL(so it must be one of those two things - permalink structure or home/site url).