Title: [Plugin: RDFa Breadcrumb] &#8211; Bug Found/Fixed
Last modified: August 20, 2016

---

# [Plugin: RDFa Breadcrumb] – Bug Found/Fixed

 *  [johncokos](https://wordpress.org/support/users/johncokos/)
 * (@johncokos)
 * [14 years ago](https://wordpress.org/support/topic/plugin-rdfa-breadcrumb-bug-foundfixed/)
 * 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.

 * 0 replies
 * 1 participant
 * Last reply from: [johncokos](https://wordpress.org/support/users/johncokos/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-rdfa-breadcrumb-bug-foundfixed/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
