I have a little problem with removing the taxonomy base from the URL in Wordpress. I tried different approaches but none worked.
register_taxonomy('project_category','projects',array(
'labels' => $labels,
'show_ui' => true,
'rewrite' => array(
'slug' => 'project-category',
'with_front' => false,
'hierarchical' => true),
'hierarchical' => true)
);
I currently see the URL like this : http://mysite.com/project-category/project1 and i want it to be like this: http://mysite.com/project1.
I tried to rewrite the slug to '' instead 'project-category' but that messed with all my othr pages, redirecting to a 404 page.