lundi 29 décembre 2014

Link to post author but exclude administrator (on single.php)


How to exclude administrators from the code below? So if the current post author has the role of administrator, nothing will show.



<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" ><?php the_author_meta( 'display_name' ); ?></a>


thank you





Aucun commentaire:

Enregistrer un commentaire