I was try to use this plugin, and flush permalinks (I use /%category%/%postname%/) - but several bugs here:
first is portfolio pages and subpages looks like archive lists now, second is clicking to any portfolio or blog item I got 404 error.
I was find another solution how to remove /category/ - write in functions.php:
add_filter('user_trailingslashit', 'remcat_function');
function remcat_function($link) {
return str_replace("/category/", "/", $link);
}
add_action('init', 'remcat_flush_rules');
function remcat_flush_rules() {
global $wp_rewrite;
$wp_rewrite->flush_rules();
}
add_filter('generate_rewrite_rules', 'remcat_rewrite');
function remcat_rewrite($wp_rewrite) {
$new_rules = array('(.+)/page/(.+)/?' => 'index.php?category_name='.$wp_rewrite->preg_index(1).'&paged='.$wp_rewrite->preg_index(2));
$wp_rewrite->rules = $new_rules + $wp_rewrite->rules;
}
This works ALMOST fine. Only one thing is if I have pagination on portfolio or on blog / tag / any archives and when I click on page 2 and above I got 404 error. I can remove pagination, but its so many items are make long page loading. Well, need to deside - use breadcrumbs without pagination, or vise versa. May be you know how I can make work pagination on second and more pages with this 'remcat_function' ? Or I just remove the breadcrumbs and forget about it..
Added:
Sorry, I write:
"...on portfolio or on blog / tag / any archives and when I click on page 2 and above I got 404 error."
This is not right.
When I click on page 2 in portfolio - then my portfolio becomу as archive list. I got 404 error only when try to press page 2 in pagination on Category archive or tags archive pages.