I have been trying use the edit_post_link() function to contain an image. All of the quotations and parameters are driving me crazy... How can I get this to work?
This outputs Edit inside the anchor link for editing the post.
<?php edit_post_link(__("**Edit**"), ''); ?>
This outputs the image I want to use.
<?php echo "<img src=\"" ?>
<?php echo bloginfo('template_directory')?>
<?php echo "/images/edit.png\" />" ?>
I've tried tons of configurations, this is the latest, but it doesn't work.
<?php edit_post_link(__(" <img src=\" " bloginfo('template_directory') " /images/edit.png\" /> "), ''); ?>