Support » Plugin: Yoast SEO » Breadcrumbs page title bug

  • Resolved Rookie

    (@alriksson)


    Breadcrumbs do not display page titles and the actual page the user is at.

    For some reason this field becomes empty.

    How do I solve this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    We would like some more information.

    1. Can you confirm you are using the most recent Yoast SEO, v12.9.1? If you update, does the issue resolve?

    2. Can you confirm you are using WordPress 5.3.2? You can check by clicking on the W in the top left and selecting About. If you need to update, please check with your host provider. Please know that if you are using an older version of WordPress Core you may experience unexpected behavior with Yoast. This guide explains more: https://yoast.com/why-we-dont-support-old-wordpress-versions/.

    3. Are all your non-Yoast plugins and themes also updated?

    4. Can you confirm you implemented the Yoast breadcrumbs using this guide: https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/

    Thread Starter Rookie

    (@alriksson)

    1. Can you confirm you are using the most recent Yoast SEO, v12.9.1? If you update, does the issue resolve?

    Yes confirmed

    2. Can you confirm you are using WordPress 5.3.2? You can check by clicking on the W in the top left and selecting About. If you need to update, please check with your host provider. Please know that if you are using an older version of WordPress Core you may experience unexpected behavior with Yoast. This guide explains more: https://yoast.com/why-we-dont-support-old-wordpress-versions/.

    Yes confirmed using the latest version of WordPress.

    3. Are all your non-Yoast plugins and themes also updated?

    Yes confirmed.

    4. Can you confirm you implemented the Yoast breadcrumbs using this guide: https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/

    Yes confirmed, but for some reason the actual page you´re at does not display. And I now how to implement it. But can not figurate out why, so I assume it’s an issue in Yoast with CPT. As I tried 3 of your competitors and all worked just fine with breadcrumbs in the php templates of the cpt’s. So have nailed it down to be Yoast.

    Plugin Support amboutwe

    (@amboutwe)

    I was unable to recreate the issue with a custom created CPT.

    Post breadcrumb: Home » Blog » Post Title or Home » Post Title
    CPT breadcrumb: Home » CPT Archive » CPT Title or Home » CPT Title

    The difference between the two breadcrumbs is whether or not an archive page exists. The blog archive page is selected under Admin > Settings > Reading > Your homepage displays (choose ‘A static page’ and a ‘Posts page’). The CPT archive is defined in the CPT setup. But in both cases, the title of the actual page you are at is included in the breadcrumb.

    All of the testing was done with a default theme and using the [wpseo_breadcrumb] shortcode so I didn’t have to modify theme files.

    This does further seem to be something specific to the CPT setup or the CPT template. Is there anything custom about how the CPT was setup? Is this a CPT that is part of a plugin that’s available in the free repo so I can test further?

    Thread Starter Rookie

    (@alriksson)

    Okay, but it still does not work for me.

    Using shortcode eon individual pages is neither an option but I have tried that too to make sure it wasn’t a glitch in the function call.

    No CPT is set up as per WordPress standard with code and not plugin.

    Just a part of the cpt.php file for one cpt type which is called form the function.php

    Service true or false is no different. But essential the parent shows correctly and we do not use archive page type. The issue is the breadcrumbs strings are not correctly displayed.

    This is how it looks where it does not display the actual page title.

    Home » CPT parent »

    add_action(
    	'init',
    	function() {
    		register_post_type(
    			'example',
    			[
    				'label' => __( 'Example', 'wptemplate' ),
    				'has_archive' => false,
    				'public' => true,
    				'show_ui' => true,
    				'menu_icon' => 'dashicons-store',
    				'show_in_nav_menus' => true,
    				'supports' => [
    					'title',
    					'thumbnail',
    					'editor',
    				],
    				'rewrite' => [
    					'slug' => 'example-url',
    				],
    				'menu_position' => 21,
    			]
    		);
    • This reply was modified 4 years, 2 months ago by Rookie.
    Plugin Support amboutwe

    (@amboutwe)

    The code above doesn’t have a parent-child relationship (hierarchy is true and supports page-attributes) so I’m not sure what you mean by CPT parent shows correctly.

    Adding these two options and the missing closing tags in the example code, I created two items; one titled Parent and one titled Child and set the parent page of the child to the parent item.

    Breadcrumb show as
    Parent page: Home » Parent
    Child page: Home » Parent » Child

    We think the issue is specific to your site and/or setup. We’d need to investigate further but are unable to do so on these forums. You can purchase Yoast SEO Premium to receive our premium email support where we can help you further.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Breadcrumbs page title bug’ is closed to new replies.