Routing dynamic numeric slug to custom template
The easiest way is to simply create a custom rewrite endpoint. This is a two-fer. It will create our actual permalink structure and our query var in one go. Do note that after creating the below you will need to resave permalinks: Settings -> Permalinks -> save button. /** * Create Careers Endpoint * * … Read more