Skip to content

Primary category is being ignored #104

@dennisperremans

Description

@dennisperremans

I'm using your plugin "Custom Post Type Permalinks", but found an issue when I use Yoast SEO plugin and Woocommerce.
With the Yoast SEO plugin, you can select which category must be primary when a product has more than one category.
For example: product X has two categories: "schools" and "activities". I choose "schools" to be the primary category.
The primary category is then added the the URL: domain.com/schools/product-x

But when I activate your plugin "Custom Post Type Permalinks". The primary category is ignored.
Always the first selected category is added in the url: so my url is domain.com/activities/product-x and not the chose primary category anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions