Hi there,
after the update to 4.8.8, on some pages, we get the error “Call to undefined function avia_breadcrumbs”.
We call this function within the functions.php in our child theme
// Breadcrumbs
function av_breadcrumbs_shortcode( $atts ) {
return avia_breadcrumbs(array('separator' => '/', 'richsnippet' => true));
}
add_shortcode( 'av_breadcrumbs', 'av_breadcrumbs_shortcode' );
We now reverted that back so that the page is not broken.
Is this a problem with our project or is it an update problem?
Hi,
Thanks for contacting us!
Please use following code instead
function av_breadcrumbs_shortcode( $atts ) {
return Avia_Breadcrumb_Trail()->get_trail( array( 'separator' => '/', 'richsnippet' => true ) );
}
add_shortcode( 'av_breadcrumbs', 'av_breadcrumbs_shortcode' );
Best regards,
Yigit
Hi Yigit,
thanks for the fast reaction! that did it.