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]