Qtranslate Slug
Hierarchical permalinks with custom post type and custom taxonomy (2 posts)

  1. rumeau
    Posted 3 years ago #

    Hello, i enabled the plugin a days ago and mi trying to implement it using custom post types and custom taxonomies.

    Unfortunately the plugin seems to override my permalink structure using its own one.

    • I have a custom post type named "Product"
    • I have a custom hierarchical taxonomy called "Products". (something like wordpress categories)

    Lets say i have a product called "My Product 1" (slug: my-product-1)
    And the following categories.
    1.- Cool Products Category (slug: cool-products-category)
    1.1.- Cool products subcategory (slug: cool-products-subcategory)

    My previous structure was "product/%product_taxonomy%/%product%/"

    This would create the permalink:

    But after activating the plugin the permalink is:

    So no hierarchical permalinks, is there a way to enable this functionality or at least a workaround for this?.

    I'm also using "Custom Post Type Permalinks Plugin" to achieve the structure.



  2. Erik James Albaugh
    Posted 2 years ago #

    I'm running into the same problem with my products & product categories permalinks. And on top of it... I need it to be WPML compatible.

    There are a lot of permastruct plugins that do PART of the job or something similar to what we need. For example:

    As far as I can tell... the best way is going to be to build your own via the WP Rewrite API: http://codex.wordpress.org/Class_Reference/WP_Rewrite
    The examples on that page have helped me start to understand how to approach our problem.

    I'm working on using the rewrite api to add custom rewrite tags (http://codex.wordpress.org/Rewrite_API/add_rewrite_tag). If you know a little RegEx... then you're in good shape to use this method.

    That's the route I'm choosing... (building our own rewrite rules) because there just aren't any plugins (or combination of plugins) that completely do the job.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Qtranslate Slug
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic