You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened
If multiple categories are selected on a post and the last category on the list is selected as the primary category, we output the permalink on the llms.txt with the URL having the first category selected on the post. As we output the canonical URL based on the primary category selected on the page, we need to output the primary category URL on the llms.txt, too.
To Reproduce
Step-by-step reproduction instructions
Set the permalinks for the post as /%category%/%postname%/
Create a new post with categories abcd, efgh, and xyz.
Select all the above categories for the post
Then select the xyz as the primary category and publish the post
Check the permalink for the post showing on the post, and you can notice that the URL would be /xyx/postname (having the selected primary category slug)
Open the /llms.txt file and you can notice that the permalink of the newly published with the URL is added with the slug as abcd/postname
Expected results
The permalink for the post having the primary category needs to be output on the LLMS.txt file
Actual results
We are outputting the permalink having the first occurring alphabet category selected on the post
Screenshots, screen recording, code snippet
If possible, please provide a screenshot, a screen recording or a code snippet which demonstrates the bug.
Permalink of the post showing the primary category xyz correctly
.
.
URL showing on the llms.txt having the first category selected on the post, which is abc, even though the URL on the permalink for the post is xyz (the primary category)
Technical info
If relevant, which editor is affected (or editors):
Block Editor
Gutenberg Editor
Elementor Editor
Classic Editor
Other:
Which browser is affected (or browsers):
Chrome
Firefox
Safari
Other:
Used versions
Device you are using:
Operating system: Windows 11
PHP version:
WordPress version: 6.8.1
WordPress Theme:
Yoast SEO version: 25.3
Gutenberg plugin version:
Elementor plugin version:
Classic Editor plugin version:
Relevant plugins in case of a bug:
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Please give us a description of what happened
If multiple categories are selected on a post and the last category on the list is selected as the primary category, we output the permalink on the llms.txt with the URL having the first category selected on the post. As we output the canonical URL based on the primary category selected on the page, we need to output the primary category URL on the llms.txt, too.
To Reproduce
Step-by-step reproduction instructions
/%category%/%postname%/
xyz
as the primary category and publish the postabcd/postname
Expected results
Actual results
Screenshots, screen recording, code snippet
If possible, please provide a screenshot, a screen recording or a code snippet which demonstrates the bug.
Permalink of the post showing the primary category xyz correctly
.
.
URL showing on the llms.txt having the first category selected on the post, which is abc, even though the URL on the permalink for the post is xyz (the primary category)
Technical info
Used versions
The text was updated successfully, but these errors were encountered: