Breadcrumb NavXT plugin – exclude ‘home’ page

Opne you header.php file and look for something like this: <div class=”breadcrumbs”> <?php if(function_exists(‘bcn_display’)) { bcn_display(); } ?> </div> then before the call for bcn_display(); make sure you are not on the home page so basicaly replace bcn_display(); with: if(!is_home() && !is_front_page()){bcn_display();}

How to show only one category in breadcrumb navigation

get_the_category() function used to retrieve categories array of a post, and array_shift() function used to get the first item of an array. You possibly need this – function ux_breadcrumbs() { if (!is_home()) { echo ‘<a href=”‘; echo get_option(‘home’); echo ‘”>’; bloginfo(‘name’); echo “</a> » “; if (is_category() || is_single() ) { if( is_category() ) { … Read more

Link posts to pages for breadcrumbs

You need to go and have a look at template hierarchy for custom post types. I believe your custom post type is tennis. So you would make a copy of your theme’s archive.php template and call it archive-tennis.php You can now style that template to your liking. Just remember, you don’t need to add or … Read more

breadcrumbs & rel=”nofollow”

I think it depends what your goal is and what the breadcrumbs represent. I would say that for most wordpress sites nofollow on breadcrumbs is probably a nonissue. Let’s start with nofollow. Nofollow says you don’t want a search engine to pass on page rank to this link. So if you had comment links and … Read more

How to output hierarchical taxonomy path, with only the deepest term assigned?

Use get_the_terms to fetch the post’s term, then use get_ancestors to get an array of that term’s parent IDs. $tax = ‘category’; $terms = get_the_terms( get_the_ID(), $tax ); if( $terms && ! is_wp_error( $terms ) ){ // check for and output any ancestors $ancestors = array_reverse(get_ancestors( $terms[0]->term_id, $tax )); if( $ancestors ){ foreach( $ancestors as … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)