Qtranslate Slug
Advanced slugs on custom post types (1 post)

  1. s.victor
    Posted 2 years ago #


    I've tried for a while now to make the plugin work with 3 level deep slugs on a custom post type but with no result so far. Is there a way to do this?

    This is what I want to achive: http://www.example.com/en/solutions/specialized-solutions/state-companies/

    Where "solutions" is the custom post type, "specialized-solutions" is a parent post in the post type and "state-companies" is another post that belongs to the parent post.

    Also tried to add a custom rewrite rule to work with this but the rewrite hits the rule created by the qtranslate-slug and goes to 404. (i've checked this with a Rewrite Rules Inspector)
    solutions/(.+?)(/[0-9]+)?/?$ index.php?post_type=solutii&name=$matches[1]&page=$matches[2]

    This is my custom rewrite rule:

    What do you think about this? Do I have a chance to make this work somehow?

    Thank you in advance,


Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic