Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15876

    OK here is my issue. I recently built a new site for a client on the Choices platform. Our main section topics are null links in some areas built using the WordPress Menu area. However this is causing a issue with our breadcrumbs. Case in point…

    http://www.opticanetworktechnologies.com/case-studies/ericsson/

    If you click on ‘case studies’ in the breadcrumbs it goes to an unpublished ‘case studies’ page. Now if I actually delete this page then the link actually goes 404. I would think that if the parent page is removed in the pages area then it would automatically update itself.

    Basically I need to be able to maintain the breadcrumbs functionality but for the parent sections just null (#) link out as just a container section.

    Any help would be greatly appreciated.

    Thanks.

    #89341

    Try following – open up choicesframeworkphpclass-breadcrumb.php and replace following code:

    $post_type = $post->post_type;
    $parent = $post->post_parent;

    with:

    $post_type = $post->post_type;

    $poststatus = get_post_status($post->post_parent);
    if ( $poststatus == 'publish' || $poststatus == 'private' || $poststatus == 'inherit')
    {
    $parent = $post->post_parent;
    }
    else
    {
    $parent = '';
    }

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Breadcrumbs 404 – Choices’ is closed to new replies.