Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1014565

    Hi,
    I have the following problem. When you go to this page you’ll see …/automatisch gespeicherter Entwurf/… in my breadcrumbs, which is German and stands for auto draft. When you click on it, you’ll get an 404 error. I have absolutely no idea what is going on. Found two other people having the same problem in this forum, but for one person the problem dissolved itself and the other one was able to get rid of it by adding the following code to functions.php:

    function avia_fix_breadcrumb_trail($trail)
    {
    	foreach($trail as $key => $data)
    	{
    		if(strpos($data, 'Auto Draft') !== false) unset($trail[$key]);
    	}
    	return $trail;
    }
    add_filter('avia_breadcrumbs_trail','avia_fix_breadcrumb_trail');

    Unfortunately this code doesn’t solve my problem. Any idea what might be going on?
    Thank you so much for your help!!

    #1014600

    Hey CaliBee,

    I fixed it by adding this code to your child theme:

    
    function avia_fix_breadcrumb_trail_dude($trail)
    {
    	foreach($trail as $key => $data)
    	{
    		if(strpos($data, 'Automatisch gespeicherter Entwurf') !== false) unset($trail[$key]);
    	}
    	return $trail;
    }
    add_filter('avia_breadcrumbs_trail','avia_fix_breadcrumb_trail_dude');
    

    Best regards,
    Peter

    #1015010

    wow, that was quick!!! Thank you so much for the great support!!! You guys are awesome!

    #1015154

    Hi,

    Great, glad we could help and thanks for the kind words :-)

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1031140

    Sorry for the late reply – go ahead and close it!

    #1031522

    Hi,

    Thanks for letting us know. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘"Auto Draft" in Breadcrumbs’ is closed to new replies.