Skip to content

Commit

Permalink
Use the rewrite slug for custom post type archives.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.locallylost.com/themes/hybrid-core/trunk@674 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information
greenshady committed Apr 21, 2011
1 parent 2e33b17 commit 971fc01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/breadcrumb-trail.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ function breadcrumb_trail_get_items( $args = array() ) {
$path .= trailingslashit( $wp_rewrite->front );

/* If there's a slug, add it to the $path. */
if ( !empty( $post_type_object->rewrite['archive'] ) )
$path .= $post_type_object->rewrite['archive'];
if ( !empty( $post_type_object->rewrite['slug'] ) )
$path .= $post_type_object->rewrite['slug'];

/* If there's a path, check for parents. */
if ( !empty( $path ) )
Expand Down

0 comments on commit 971fc01

Please sign in to comment.