• We had a call to “get_pages()” in our header.php, and in that call I needed to specify “hierarchical”=>0

    Once I did that, the RDFA Breadcrumb started to display an improper page title for the current page (no matter what page we were viewing). I’m not sure how that setting in a wordpress function comes down backwards to break this breadcrumb plugin, but I did figure out how to fix it.

    In rdfa-breadcrumbs.php, line 145 was this line:
    $item[‘last’] = get_the_title();

    I changed that to this:
    $item[‘last’] = get_the_title($post_id);

    This forces the plugin to show the title of the current page as the last piece of the breadcrumb instead of a random page title.

    Please review and incorporate into your next bug fix

    Thanks

  • The topic ‘[Plugin: RDFa Breadcrumb] – Bug Found/Fixed’ is closed to new replies.