Tagged: breadcrumb, Permalinks, Portfolio, url
I got bug with permalinks for Portfolio. Categories mixed in in the wrong order in the top breadcrumb.
For exsample, I got something like this: Cats / Red Dogs / Big white cats insted
Cats / Big cats / Big white cats. All portfolio items included in the desired categories,
menu page order is also correct. It’s only bug with breadcrums.
It seems I fix this problem. I renamed portfolio’s permalinks in the settings menu — give them unique names. Also I update menu links.
upd.. This bug appears time up to time. Very stange.
P.S. I can’t add portfolio items into the menu. On the page /wp-admin/nav-menus.php is only avaible Pages, Links and Categories. So I used Links to add portfolio page into the menu.
Hi!
WordPress supports a special option field for the portfolio items. Go to Appearance > Menus and click on the “Screen Options” tab in the right top corner. Then tick the checkbox next to “Portfolio Items” and WP will show a new option field for portfolio items.
Cheers!
Peter
Thanks. And whats about breadcrumb links?
It’s snow like You are here: Home / Cars / Eat / Ferrari.
As you see Eat is not belong to Cars category, but it’s appear.
Hi!
Please add this on functions.php:
add_action('after_setup_theme','avia_remove_portfolio_breadcrumb');
function avia_remove_portfolio_breadcrumb(){
remove_filter('avia_breadcrumbs_trail','avia_modify_breadcrumb');
}
Best regards,
Ismael
Thank You very much! It works. Why this code is not included by default or it is specific bug?