A custom function shouldn’t be too hard to build. Use wp_get_post_terms(), then sort the results based on the parent ID. Get more parent terms as needed until you reach the top. From that you can build a breadcrumb, including relevant links, for output to the client.
@shariffrb: You don’t want to have the same variable on both sides of ‘as’ in the foreach structure. Try changing the first 3 instances of $category to $categories. If the categories are coming out reversed from what you want, use $categories = array_reverse( $categories ); before the foreach line.
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Category & Custom Taxonomy based Breadcrumb’ is closed to new replies.