How can I add dynamic page url in WordPress?

I have a custom post type News.

Also I have added page with front-end post edit.

At this moment I can edit my news by opening this url:

host.com/edit-news/?id=21231

I want to make a page with url looks like with dynamically changing id of post:

host.com/news/21231/edit

Where I need to make changes, to make an ability for adding this url to my specific page in WordPress?

Read more here:: How can I add dynamic page url in WordPress?

Leave a Reply

Your email address will not be published. Required fields are marked *