I want to do a check to see if the user viewing the post is the Author. If they are the author, then, and ONLY then do I want to display the "| Edit" link on the dateline for the post.
I have come up with the following code, but I'm getting an error...
<?php if(wp_login($username) ?> == <?php the_author_posts_link(); ?>
<?php edit_post_link('Edit', ' | ', ''); ?>
<?php endif; ?>
Any ideas or has someone else already done this and willing to share the code?