Edit post link

Adding this PHP code to your wordpress theme will display a post link to edit the current post if user has the permission to edit posts. This code must be placed within your wordpress loop. Use get_edit_post_link to retrieve the url.

 

 

<?php
edit_post_link('edit', '<p>', '</p>');
?>

Be Sociable, Share!

Leave a comment