Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Mike

    (@mduschak)

    In an effort to give you more details to work with, I will add that the xml sitemap generated by Yoast correctly respects/reflects the changes that we make to the slug using the examples listed in my previous reply.

    Unfortunately Yoast breadcrumbs do not repect/reflect the slug changes.

    I hope this helps.

    To anyone else experiencing this issue, I have found a solution using the wpseo_breadcrumb_links filter to intercept and update the breadcrumb. This eliminates any issues caused by the yoast_indexable table being out-of-date and full of incorrect data.

    Storing and managing duplicate data across multiple database tables is a terrible idea.

    Thread Starter Mike

    (@mduschak)

    Hi @priscillamc,

    That is correct, we created a custom admin settings page that allows users to change the slug for a custom post type.

    Example is a post type called ‘programs’ which would have a slug of ‘programs’. On the settings page users can change the slug to something like ‘academic-programs’ so the slug would be ‘www.site.com/academic-programs’. The slug value is saved the the DB using register_settings(). We fire flush_rewrite_rules() whenever the settings page is saved/updated. Using register_post_type_args() $args[‘rewrite’][‘slug’] we are able to use our new slug value from the DB for the rewrite slug.

    Currently all permalinks for the custom post type update exactly as expected where ever they are in use but for one instance: Yoast breadcrumbs.

    The Yoast issue we are experiencing directly relates to custom breadcrumbs not updating with the new permalink for the custom post type.

    We had expected that the permalink saved in the indexables table would be updated when flush_rewrite_rules() is run, but that is not what is happening.

    I have found that after changing and saving the slug on our settings page, we then go to the Yoast settings page /admin.php?page=wpseo_titles#top#post-types and click ‘save’ the breadcrumb permalink will be updated with the correct slug.

    If we do not perform this manual step, the breadcrumbs will continue to use the old version of the slug.

    Our hope is there is a function that allows us to programmatically trigger this permalink update whenever our settings page is updated.

    Thank you for your help.

    • This reply was modified 4 years, 1 month ago by Mike.
    • This reply was modified 4 years, 1 month ago by Mike.
    Thread Starter Mike

    (@mduschak)

    Thank you for the offer of free extensions.

    Please consider where the WordPress community would be if everyone followed your practices.

    This community is built on trust. Releasing and update that is destructive to your users is irresponsible and thoughtless.

    Hope you are able to recover the trust you have lost.

    Thread Starter Mike

    (@mduschak)

    Thank you for the reply @amboutwe

    I have tested two locations: locally using MAMP and on our development server.

    In both instances I am using the plugin on a multisite installation.

    I have tested different themes and turning off all plugins.

    I even created a brand new site on my local multisite, made sure all plugins were disabled, and used the Twenty Sixteen theme. I downloaded a clean copy of Yoast SEO as well.

    I am running WP 4.6.1

    In all cases I am seeing the same problem.

    I also made sure ‘Add Twitter Card Metadata’ was enabled.

    Not sure what else to try at this point.

    Also getting same bumpdown console error message as first comment

    Thread Starter Mike

    (@mduschak)

    mercime:

    Thanks for the input.

    My concern is what folder to upload. From your answer does that mean I’ll upload to the wp folder that also contains:
    cgi-bin
    modlogan
    webalizer
    wp-admin
    wp-content
    wp-includes

    Thanks again!

    Thread Starter Mike

    (@mduschak)

    Update:

    I have downloaded WPG2.

    Installation instructions are very clear.

    Looks like I just need to know how to install and upload Gallery2 to server.

Viewing 7 replies - 1 through 7 (of 7 total)