Adding link to custom post template that directs to the edit page for that specific post

[ad_1]

I’m using a custom post template and within it (when you open a post’s page that uses this custom post template), I currently have a button that links to the Posts section in the WordPress sidebar (where you create, edit, and delete posts).

I’d like that button to instead link directly to the editing page for the specific post they were in when they clicked the button.

So, instead of an “Edit/delete a post” button, it’s an “Edit/delete THIS post” button.

Does anyone know how I could achieve this? I figure the functionality would be programmed with JavaScript, but I don’t know how to dynamically link to the specific post in which the button they clicked was located.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer