-
Notifications
You must be signed in to change notification settings - Fork 882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yoast resets slug of custom post when permalink is customized using post_type_link #7800
Comments
For my site I'm adding custom fields into the permalink using the same method as above. If I try to hook into post type link and return a value. It basically hoses my permalink if I ever edit yoast meta data. |
I'm currently doing this as a workaround. Added to the functions.php file This is grabbing the current slug, and adding it to yoast slug field when the yoast panel is clicked.
|
Thank you for reporting. |
I consider this a bug. |
Do you have an idea if this is going to be solved in the near future? |
Please give us a description of what happened.
Yoast does not recognize a custom post type's permalink customization. If you "Edit snippet" using Yoast, the slug is blank and will reset the slug the user previously set.
Please describe what you expected to happen and why.
Yoast should not reset the slug, the custom slug should be prepopulating into Yoast's slug field, and the permalink Yoast shows should show the proper URL.
How can we reproduce this behavior?
For functions.php:
Technical info
The text was updated successfully, but these errors were encountered: