Add prefix to page URL based on the page template

Question

I want to add a prefix to page URLs based on the page template and update also permalinks in the pages.

Current URL:

www.example.com/chicago

Expected result:

www.example.com/m/chicago

This rule should be applied only for template-market.php.

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/add-prefix-to-page-url-based-on-the-page-template/">

Add prefix to page URL based on the page template</a>
0
, , Dawid Malec 2 months 0 Answers 68 views 0

Leave an answer