I am working on a website where I need to have links to posts or pages that a user has added to the website. For example, a user can login to the backend of the website and they will automatically go to their profile page. In the profile page, they can see what posts and pages they have added. I want them to be able to edit their own posts or pages when they click on a link in the profile page.

I know how to add extra fields in the profile page, but I am not sure how to add links that will take them to the editor for their own posts and pages. Can someone point me in the right direction?


1 Answer 1


WordPress has the function edit_post_link() to

Displays a link to edit the current post, if a user is logged in and allowed to edit the post.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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