0

I would like to know if anyone has ever tried to create a permalink like this for editing a post in the frontend:

http://example.com/books/750/edit

Where books is my custom post type, 750 the custom post type id and edit the edit page slug. I know I could do something like http://example.com/books/edit/?id=750 but's that not very friendly.

Thanks

-1

Pretty sure you could use the Rewrite API to pull this off in your theme's functions.php file.

  • Please do not just dump links here. Add an explanation and an example how to use it. – kraftner Mar 4 '16 at 9:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.