I was wondering if anyone has faced this issue before. I want to setup my own routing for wordpress. I have several templates assigned to pages (The ones with 'Template Name' parameter).
So for example, i have hierarchy like this:
i have assigned each of the following a template. Now i want to pass parameters to them like:
and still load the same template assigned to Edit or View.
Any solution for this?
I have tried adding a rewrite rule but am not sure what to pass as pagename because my pages are all children or sub-children etc.