Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi @dgirona,

    Yes, you can include hierarchical custom taxonomies slugs with Permalink Manager. This feature is available also in free version of plugin.

    Basically, you will need to change your permastructure format to:
    custom-post-type/%custom_taxonomy%/%postname%

    To apply the new settings you will need to use “Regenerate/reset” functionality.

    You can find more info in the below articles:
    https://permalinkmanager.pro/docs/tutorials/add-category-slug-wordpress-permalinks/
    https://permalinkmanager.pro/docs/tutorials/how-to-make-hierarchical-post-types-taxonomies-permalinks-flat/

    I hope the above is useful to you. If you require any further information, feel free to contact me.

    Best regards,
    Maciej

    Thread Starter dgirona

    (@dgirona)

    Hi Maciej,

    I have defined categories and subcategories of a custom post type.
    I have defined the link structure as you say:

    And if I use the “Regenerate / reset” function, it doesn’t take into account the hierarchy of taxonomies, it just takes the first one.

    custom-post-type / category / name

    but I need

    custom-post-type / category / subcategory / name

    The only solution I have found is to edit the slugs by hand.

    Thanks

    Plugin Author Maciej Bis

    (@mbis)

    Hi @dgirona,

    If both a subcategory and parent category are selected for a particular post, Permalink Manager should use subcategory for the new, custom permalink. Do you possibly use any SEO plugin (eg. Yoast SEO, SEOPress or Rank Math) to select the top/parent term as a primary category?

    Regards,
    Maciej

    Thread Starter dgirona

    (@dgirona)

    Yes, I use yoast, but it doesn’t change the priority of categories. If I put the subcategory as the main one, I get the same result. Only the parent category is shown in the url.

    Thanks for the help Maciej : )

    Plugin Author Maciej Bis

    (@mbis)

    Hi @dgirona,

    Could you try to disable support for primary categories in the custom permalinks. To do so, please add this line of code to functions.php in child theme directory:

    add_filter('permalink_manager_primary_term', '__return_false');

    After that, please try to regenerate the custom permalinks again.

    Thread Starter dgirona

    (@dgirona)

    Hi Maciej,

    It has worked well.
    Now when I create a custom post type, the url is generated automatically.

    Maybe this filter could be an option in a future version of the plugin:)

    I can say that it is the only plugin in the entire wordpress repository that can handle this correctly.

    I have left you a 5 star review and I am going to discuss your plugin with the developer of the Custom Post Type UI plugin who was also interested in giving a solution to my problem.

    I will also leave a link to your plugin in its development forum:)

    Thank you very much for your help : )

    • This reply was modified 3 years, 3 months ago by dgirona.
    Plugin Author Maciej Bis

    (@mbis)

    Hi @dgirona,

    Thank you for the review! I will add a new option field to disable the support for primary category directly via the plugin settings ??

    Best regards,
    Maciej

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘levels in the taxonomies of custom post types’ is closed to new replies.