Breadcrumb not showing custom category post type

I’m still not one hundred percent sure where and what needs to be displayed. If you need to show the current single post’s category, you’ll need to use get_the_category in stead of the_category as the_category needs to be called inside the loop. You can use get_the_category as follow (Remember to use the global $post to … Read more

breadcrumb need to show all pages and subpages

That’s not traditionally how breadcrumb navigation works, as I’m guessing you’ve discovered if you’re trying to implement Breadcrumb NavXT. 🙂 You might have better luck styling wp_list_pages so the links display horizontally and highlight the page you’re on? Here’s where it describes how to display the current page / ancestors / children. Best of luck!

Breadcrumb ordered wrongly

My initial thought is that the issue is here: $category = get_the_category(); If get_the_category() is returning categories in reverse-hierarchical order, then you can do this to put them back in order: $category = get_the_category(); $category = array_reverse( $category ); However, I’m confused by this: But some times facebook is coming 1st then Social Media 2nd… … Read more

WordPress SEO plugin (by Yoast) and BuddyPress [closed]

This is possible using the filter wpseo_breadcrumb_links. In this example, I’m using the functions bp_get_user_meta and bp_loggedin_user_id, adjust as needed. To check if the page is child of the Members page (in this example, ID == 2), I’m using the function has_parent grabbed from here. add_filter( ‘wpseo_breadcrumb_links’, ‘buddy_crumbs_wpse_88889’ ); function buddy_crumbs_wpse_88889( $links ) { // … Read more

Adding a line of text to php code

There is a difference between the home page and the front page. Since the code uses is_front_page I assume that is what you want, but check the Codex for the difference. I don’t know how your theme works, but it looks like the theme rolls several things into the “info bar”. The code you posted … Read more

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