• Resolved Dawid

    (@davidcie)


    By default WordPress takes page parents into account when constructing permalinks. So if you have a page titled Case Study One nested under Case Studies nested under EN, you’d have a permalink /en/case-studies/case-study-one/.

    I’ve been trying to reproduce that with Permalinks Customizer but have so far been unable to. First I tried to leave the box for pages empty as according to documentation this should use WordPress defaults. However, I once I edit (and publish) an existing page, its permalink gets shortened to ‘/case-study-one’.

    I then tried to specify %postname%/ in permalink settings but this made no difference, page permalinks still get flattened upon publish.

    How can I accomplish the /en/case-studies/case-study-one/ aka WordPress default permalink structure?

    • This topic was modified 8 years, 2 months ago by Dawid.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    Hi @davidcie,

    If you want the Parent Slugs so, you can use any of the below 2 Structure Tags.

    1. %parent_postname%

      : If you want only the immediate Parent slug with current Post slug so, you can use this tag.

    2. %all_parents_postname%

      : If you want all the parent slugs with current post slug as WordPress do so, you can use this Tag.

    These Tags have been added in the latest version of plugin 0.3.7.

    I hope, this would done your job.

    Let me know if you want to know anything else.

    Thanks,
    Sami

    Thread Starter Dawid

    (@davidcie)

    Works a treat! Thank you, this brings us back in line with WP defaults.

    Thanks again,
    Dawid

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Include /parent/in/permalinks’ is closed to new replies.