Extend page routing with custom parameters
Question
In WordPress there is defined a simple routing
/%postname%/
So when I access /projects/
it loads me Projects
page which has specified custom template_projects.php
template.
Is it possible to extend routing but only for this template ?
Let’s say I want to extend routing to handle project id, so it should be:
/%postname%/%project-id%/
But other pages will work with base route.
0
routing
7 years
0 Answers
71 views
0
Leave an answer
You must login or register to add a new answer .