October 15, 2013 at 11:43 am #175573
Hi guys, i have a problem with breadcrumbs: this one is a porfolio item http://www.thelayout.it/portfolio/siccom-forniture, and if you try the link you can see in bc “Sei qui:Home / Siti internet Sassari | Siti web Sassari / Siccom Forniture”.
Siti internet Sassari | Siti web Sassari is a page that have no links with the portfolio item. There is the same problem with the others portfolio items. The corret breadcrumb is: Sei qui:Home / Portfolio/ Siccom Forniture”.
Can you help me please?October 15, 2013 at 11:50 am #175579October 15, 2013 at 7:37 pm #175996October 16, 2013 at 10:12 am #176329October 16, 2013 at 12:50 pm #176384
The problem is here, http://www.thelayout.it/portfolio_entries/web. With this category of portfolio items breadcrumbs are not correctOctober 17, 2013 at 10:10 am #176924
Maybe you used the ” Siti internet Sassari | Siti web Sassari” page as portfolio grid page in the past? Then the wrong breadcrumb was caused by a technical limitation. WordPress doesn’t know which “portfolio grid” is the parent page of a “single portfolio entry” because the portfolio grid is actually just a shortcode which is embedded into the content. Kriesi found a workaround and Enfold stores the id of the portfolio/grid page into a session. If the session data exists the breadcrumb will show the portfolio grid link in the breadcrumb, otherwise not. So if the user first views the grid page the server will save the id into the session and as soon as the user views the single portfolio entry Enfold uses the session data to build the breadcrumb. On the other hand (if the user accesses the portfolio entry directly) it won’t save a session/id and the breadcrumb won’t show the portfolio grid page link.
I tested the portfolio page on your website and the breadcrumb seems to work for me now: http://www.screenr.com/iDtH . Maybe try to clear the browser cache and visit it again to get rid of the old session data.
If you want to show the portfolio grid page in the breadcrumb but just the portfolio categories of the current entry you can use the code I posted here http://www.kriesi.at/support/topic/breadcrumbs-with-portfolio/
PeterNovember 1, 2013 at 7:48 pm #183480November 2, 2013 at 11:20 am #183678
In the file wp-content/themes/enfold/framework/phpclass-breadcrumbs.php on the line 440 if i comment, the problem is solved, but every upgrade there is the problem
/* Allow child themes/plugins to filter the trail array. */
//$trail = apply_filters( ‘avia_breadcrumbs_trail’, $trail, $args );November 2, 2013 at 12:32 pm #183689
But the code I posted here: http://www.kriesi.at/support/topic/breadcrumbs-with-portfolio/ does exactly the same because it removes the filter function which manipulates the breadcrumb trail with
$trail = apply_filters( ‘avia_breadcrumbs_trail’, $trail, $args );
So your code
//$trail = apply_filters( ‘avia_breadcrumbs_trail’, $trail, $args );
or my function here http://www.kriesi.at/support/topic/breadcrumbs-with-portfolio/ should give you the same result but the filter function can be used in a child theme file and you don’t need to hack the core theme files.
The topic ‘Problem with Breadcrumbs’ is closed to new replies.