WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
breadcrumb category precedence (1 post)

  1. thomask
    Member
    Posted 2 years ago #

    it would be great, if i could define order of the categories, which show in breadcrumb, but i know that there is not such option in standard WordPress as taxonomy has no order column (i'm using excelent Gecka Terms Ordering plugin for it), so maybe some filter would help.
    Or at least there may be a option to print ALL terms in all/selected $taxonomies, than the code around row 185 would be something like

    if ( count($terms) > 0 ) {
                  foreach ($terms as $term) {
    							$bctitle = wpseo_get_term_meta( $term, $main_tax, 'bctitle' );
    							if (!$bctitle)
    								$bctitle = $term->name;
    								$termlinks[] = '<a href="'.get_term_link($term, $main_tax).'">'.$bctitle.'</a>';
                  }
                  $output .= implode(', ', $termlinks) . ' '.$sep.' ';
    						}
    					}
    					$output .= $this->bold_or_not( $this->get_bc_title( $post->ID ) );

    http://wordpress.org/extend/plugins/wordpress-seo/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic