Hi everyone I am trying to show an edit and delete button (frontend)in the single post based on 2 conditions.
1.) is the current logged in user the author of the post AND
2.) is the Post in the category 'X'
if both conditions is met then display an edit and delete ink, if not then don't give the edit and delete link.
<?php edit_post_link( __( 'edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
the above snippet already checks for author of post (by theme default) so how do I add the category condition in it?
is this conditional tag to use?
<?php is_category( $category ); ?>
I have tried it didn't work maybe I have done it wrong.