Created
May 15, 2012 20:10
-
-
Save jeherve/2704731 to your computer and use it in GitHub Desktop.
[Quora] How do I insert a rel=author into my get_the_tags call in WordPress?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$posttags = get_the_tags(); | |
if ($posttags) { | |
foreach($posttags as $tag) { | |
echo '<a rel=author href="' . $tag->slug . '">' . $tag->name . '</a>'; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment