How to display post edit links after content?

How to display post edit links after content? Copy and paste the codes into your page template

echo '<p class="alignright"><a class="button" href="' . get_edit_post_link( get_the_ID() ) . '">Edit Post</a></p>'; 

Similar Posts

Leave a Reply

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