Yoast Primary Category Support
-
Issue: Using the
%category_flat%
structure tag doesn’t use the primary category.I see from an early support ticket that you added support for Yoast’s primary categories, which is what we’re using here. We’re on WordPress 5.0.2, Permalink Manager Lite 2.1.2.3 and Yoast 9.6.
After setting the primary category, I tried running the ‘Regenerate/Reset’ tool using the ‘Restore Native Permalinks’ mode. This reverted to the primary category, but also included the parent category in the permalink. Running ‘Custom URI’ mode removed the parent category from the permalink, but then ignored the primary category selection.
e.g. a post has the following categories assigned:
- Career (Top level)
- Members (Audience/~)
- Communication (Learning/Skills/~)
I set the primary category as ‘Members’.
- Restore native permalinks mode changes ‘career/postname’ to ‘audience/members/postname’
- Custom URI mode changes ‘audience/members/postname’ to ‘career/postname’
But what we really want is ‘members/postname’
I hope that is clear enough to help.
- The topic ‘Yoast Primary Category Support’ is closed to new replies.