Skip to content
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

WordPress link button does not recognize primary category permalink #7203

Open
rmarcano opened this issue Jun 5, 2017 · 16 comments
Open

WordPress link button does not recognize primary category permalink #7203

rmarcano opened this issue Jun 5, 2017 · 16 comments

Comments

@rmarcano
Copy link

rmarcano commented Jun 5, 2017

What did you expect to happen?

WordPress to insert link using the primary category permalink.

What happened instead?

WordPress inserts the link using the categories in alphabetical order instead of the primary category permalink.

How can we reproduce this behavior?

  1. Configure the permalinks as /%category%/%postname%/
  2. Create new categories: category01, category02, category03
  3. Create a new post, assign category03 as primary category, this would make the URL /category03/postname.

category-permalink

  1. In another post, insert a link using the WordPress link button.
    linktool

  2. Check that WordPress suggests the /category01/ link instead of the /category03/ permalink.
    linktool02

Technical info

  • WordPress version: 4.7.5
  • Yoast SEO version: 4.8
@rmarcano
Copy link
Author

rmarcano commented Jun 6, 2017

Please inform the customer of conversation # 200046 when this conversation has been closed.

@monbauza
Copy link

This user in the free forum is experiencing the same issue https://wordpress.org/support/topic/primary-category-function-not-working-correctly/

@monbauza
Copy link

monbauza commented Aug 1, 2017

@mmikhan
Copy link
Member

mmikhan commented Jun 28, 2018

The user here also experiencing this issue: https://wordpress.org/support/topic/primary-taxonomy-not-reflected-in-url/

@flacon2000
Copy link

Same issue. Any solutions?

@monbauza
Copy link

This issue still happens in Yoast SEO v14.5 but only when a link is added using the Classic Editor, not Gutenberg.

@monbauza
Copy link

Please inform the customer of conversation # 630299 when this conversation has been closed.

@Devon-Developer
Copy link

This issue also happens with Yoast SEO Premium v15.0. I would've thought getting the right URL showing with an SEO plugin is a little more important than "trivial"! :)

@josh-yoast
Copy link

Please inform the customer of conversation # 728038 when this conversation has been closed.

@monbauza
Copy link

Still reproducible with Yoast SEO 18.6 and Classic Editor 1.6.2. It seems that not always the first category in alphabetical order is chosen. In my tests, when a post link is inserted, the Classic Editor includes the original category (the first category that was assigned to the post) in the permalink instead of the primary category.

@monbauza
Copy link

Please inform the customer of conversation # 884845 when this conversation has been closed.

@mmikhan
Copy link
Member

mmikhan commented May 6, 2022

The issue moved to internal issue management board. I can confirm the issue is no longer only specific to the Classic Editor but occurs on Gutenberg editor as well.

@monbauza
Copy link

Issue still reproducible in Yoast SEO 20.5 and Classic Editor 1.6.3. Re-opening.

@monbauza monbauza reopened this Apr 12, 2023
@monbauza monbauza added the IM label Apr 12, 2023
@timatron
Copy link

can't wait for this to be fixed! makes us second guess using yoast primary category with our URLs

@suascat
Copy link

suascat commented Oct 27, 2023

Please inform the customer of conversation # 1069404 when this conversation has been closed.

@suascat
Copy link

suascat commented Mar 8, 2024

Please inform the customer of conversation # 1112593 when this conversation has been closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests