breadcrumb not showing proper page structure
I got it working as @Pieter suggested to check if page has parent or not. Got the help from here Breadcrumb how i can display page title with parent > child title with permalink ? any Idea
I got it working as @Pieter suggested to check if page has parent or not. Got the help from here Breadcrumb how i can display page title with parent > child title with permalink ? any Idea
I always like the non-plugin solution, even if it’s a hard one. To create a breadcrumb, you will need to functions. One, will create a chain of items ( such as categories ) for you. This will be used to form the breadcrumb later: function get_category_parents( $id, $link = false, $separator=”https://wordpress.stackexchange.com/”, $nicename = false, $visited … Read more
For option a, see the Breadcrumb NavXT FAQ. For option b, since there isn’t an all encompassing “current item breadcrumb template”, you have two options: Since all the unlinked breadcrumb templates are used for the current item, just replace the %title% and %htitle% tags with ‘You are here’. Write a filter for the bcn_breadcrumb_title hook, … Read more
Breadcrumb that shows multiple custom taxonomies
Solved I’ve solved it by myself. The WordPress function get_the_term_list() returns the terms of the post, but unfortunately they are in the reversed hierarchical order, so I had to turn them around. $id = get_the_ID(); $terms = get_the_term_list( $id , $taxonomy , ” , $randomstring ); $terms_array = explode( $randomstring , $terms ); $terms_string = … Read more
If I moved the location of my generic “posts” page, do I need to change the slugs for all of the individual posts?
According to their documentation the primary category should appear as the breadcrumb. I’d use a Yoast-specific forum to ask their folks.
The solution is quite simple. I copied single-product.php from woocommerce/templates and modified it so loop starts before before_main_content hook: get_header( ‘shop’ ); ?> <?php while ( have_posts() ) : the_post(); ?> <?php /** * woocommerce_before_main_content hook. * * @hooked woocommerce_output_content_wrapper – 10 (outputs opening divs for the content) * @hooked woocommerce_breadcrumb – 20 */ do_action( … Read more
You can change the code in the theme files to do this. Open the file category.php (if this file doesn’t exist, try archive.php) and replace the text you want to change with single_cat_title() Here is the documentation However these changes will be overwritten if you update your theme You can create a child theme or … Read more
Custom post type archive false is not compatible with breadcrumbs