• Resolved gorfeas

    (@gorfeas)


    In a staging wp site I am trying to properly implement YOAST breadcrumbs sitewide.
    Twenty-twenty child theme. Twentig transparent header with sticky menu activated.

    I added the YOAST breadcrumbs in the last part of the header.php

    permalink structure is: https://wordpress-672479-2982721.cloudwaysapps.com/%category%/%postname%/

    I am struggling with one thing:
    I have created a custom taxonomy for regular posts called “scale” and the urls are working just as expected:
    https://wordpress-672479-2982721.cloudwaysapps.com/scale/1_72/
    breadcrumbs however display: “Home / 1/72” instead of “Home / scale / 1/72”

    I have checked YOAST SEO->search appearance->taxonomies-> Category URLs
    Remove the categories prefix? (REMOVE)

    How may I achieve the above goal?

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter gorfeas

    (@gorfeas)

    Just a rectification theme is twenty twenty one

    Plugin Support Maybellyne

    (@maybellyne)

    Hello @gorfeas

    I’m sorry that the breadcrumbs for custom taxonomy are not matching the URL.

    Can you please try the following?

    1. Install & activate the?Yoast Test Helper plugin
    2. Go to Tools > Yoast Test
    3. Locate the Yoast SEO section and click on the ‘Reset indexables tables & migrations’, ‘Reset Prominent words calculation’, and ‘Reset Internal link counter’ buttons. After each click, the page will reload to confirm that the specific reset was successful.
    4. Go to SEO > Tools, and under SEO data, click the “Start SEO data optimization” button to allow Yoast to rescan your content.

    Please let us know if the reported issue remains after resetting the optimized data.

    Thread Starter gorfeas

    (@gorfeas)

    Followed all the above steps but it still doesn’t work.
    URL https://wordpress-672479-2982721.cloudwaysapps.com/scale/1_144/
    breadcrumbs Home / 1/144

    Thank you @maybellyne I followed your instructions. And now it’s working fine as it should be!

    Plugin Support Maybellyne

    (@maybellyne)

    @diep3s Thanks for confirming that it worked.

    @gorfeas The URL you provided doesn’t look like it’s using Yoast SEO breadcrumbs. Can you please confirm that both breadcrumbs are enabled in the plugin? You can enable Breadcrumbs by performing the following steps:
    ? Go to WordPress > Yoast SEO > Search Appearance > Breadcrumbs
    ? Toggle the setting for ‘Enable Breadcrumbs in your theme’ to ‘Enabled’
    ? Click ‘Save Changes’
    After confirming that breadcrumbs are enabled on the site, can you confirm that you have added the necessary code to where you want the breadcrumbs to appear in your theme’s respective PHP file? The code for the breadcrumbs is as follows:

    <?php
    if ( function_exists('yoast_breadcrumb') ) {
      yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
    }
    ?>

    Depending on your theme, you may or may not need to add in the beginning <?php and ending ?> PHP tags. If you are unsure, we recommend contacting your theme developer for additional assistance.

    Common places where you could place your breadcrumbs are inside your single.php and/or page.php file just above the page’s title. Another option that makes it easy in some themes is just pasting the code in header.php at the very end.

    Also, we have directions for implementing the Yoast breadcrumbs at the following link: How to implement Yoast SEO breadcrumbs.

    • This reply was modified 2 years ago by Maybellyne.
    • This reply was modified 2 years ago by Maybellyne.
    Thread Starter gorfeas

    (@gorfeas)

    @maybellyne as I mentioned in my first post:

    `Twenty-twenty child theme. Twentig transparent header with sticky menu activated.

    I added the YOAST breadcrumbs in the last part of the header.php

    permalink structure is: https://wordpress-672479-2982721.cloudwaysapps.com/%category%/%postname%/`

    The only breadcrumbs activated are the YOAST breadcrumbs. Twenty twenty-one does not have breadcrumb option.
    No other breadcrumb plugin installed or activated.
    In order to display the breadcrumbs I have added the following code into template-parts/header/site-nav.php

    if ( function_exists('yoast_breadcrumb') ) {
      yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
    }

    The problem is that I get different urls and breadcrumbs.
    For example:
    URL https://wordpress-672479-2982721.cloudwaysapps.com/scale/1_144/
    breadcrumbs Home / 1/144
    I have alreadey tried your first suggestion with the Yoast Test Helper plugin.

    Thread Starter gorfeas

    (@gorfeas)

    It looks like someone else is having the same problem
    unresolved issue

    Thread Starter gorfeas

    (@gorfeas)

    here’s a screenshot of the settings
    https://snipboard.io/prE5PN.jpg
    and a screenshot of the result
    url and breadcrumbs for post categories are in sync
    https://snipboard.io/XdJI9v.jpg

    url and breadcrumbs for custom taxonomies NOT in sync
    https://snipboard.io/x0neVg.jpg

    • This reply was modified 2 years ago by gorfeas.
    Plugin Support Maybellyne

    (@maybellyne)

    Hello @gorfeas

    Thanks for the screenshots. It’s not possible to omit the CPT and call its taxonomy directly.

    But you or your developer can customize the plugin to suit your specific need.

    Thread Starter gorfeas

    (@gorfeas)

    There is no CPT just custom taxonomies. I only use wp posts post type

    Thread Starter gorfeas

    (@gorfeas)

    Issue remains unresolved

    Thread Starter gorfeas

    (@gorfeas)

    Hallo @maybellyne any ideas if this issue will be addressed?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘breadcrumbs for custom taxonomy not matching URL’ is closed to new replies.