Extend page routing with custom parameters


In WordPress there is defined a simple routing


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:


But other pages will work with base route.

hsz 7 years 0 Answers 71 views 0

Leave an answer