• Resolved duuuda

    (@duuuda)


    I am using Customizer with option to set name of custom post type. But when CPT name is changed, breadcrumbs name stays the same. So it is probably something to do with indexables. If I check table wp_yoast_indexable, breadcrumb_title value is not changed. How do I force breadcrumb_title to update after changing CPT name?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support devnihil

    (@devnihil)

    @duuuda Can you please try the following steps to resolve the issue?:

      1. Install & activate the?Yoast Test Helper plugin
      2. Go to Tools -> Yoast Test
      3. Hit the “Reset indexables & migrations” button
      4. Click the “Click here to speed up your site now” button.

    Does this resolve the issue with the breadcrumbs? We look forward to hearing from you.

    Thread Starter duuuda

    (@duuuda)

    Thanks @devnihil this helped, and it is also possible to do this with wp yoast index CLI command.
    But I am lookong for solution how to force update when Custom Post Type name is changed.

    Happy to hear that either the WP-CLI option and the test helper plugin helps. We do not have another workaround we’re afraid. Can you give us a little more information on the usecase? We ask since changing the name of a CPT is not something we expect to be done quite often.

    Thanks.

    Thread Starter duuuda

    (@duuuda)

    This is custom template enabling users to customize Custom Post Type. Generally this should be done only once when setting up page, but if indexables are set before that there is no option to update specific field like CPT name (breadcrumb_title in yoast_indexable table).

    Hi @duuuda,

    It sounds like you’ll need to use the WordPress developer hooks to trigger an update to the breadcrumb title whenever the CPT name is updated. You may find more guidance on how to do so starting with the WordPress documentation on Registering Custom Post Types.

    While there doesn’t appear to be a hook specifically for updating the breadcrumb title in the table, you can take a look at the available code examples available in the Yoast SEO metadata API.

    Thread Starter duuuda

    (@duuuda)

    Thanks @priscillamc but I didn’t find a way how to update breadcrumb_title with Yoast SEO metadata API.
    It would be really nice to have option to update breadcrumb_title when Custom Post Type name changes.

    • This reply was modified 4 years, 5 months ago by duuuda.
    Plugin Support devnihil

    (@devnihil)

    @duuuda Unfortunately we can’t offer support on custom code. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.

    Thank you for your understanding.

    Thread Starter duuuda

    (@duuuda)

    ok, I understand. Thank you for your time.

    @duuuda

    We understand you will need some kind of custom coding solution to force Yoast to work on your specific set-up.

    We will keep this forum topic 1 week in case someone from the community can help. Perhaps a developer watching these forums can assist further. After which, we will close in order to keep the overview.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Custom post type breadcrumb name not updating’ is closed to new replies.