Skip to content

Instantly share code, notes, and snippets.

@paulc010
Created March 27, 2012 09:26
Show Gist options
  • Save paulc010/2214356 to your computer and use it in GitHub Desktop.
Save paulc010/2214356 to your computer and use it in GitHub Desktop.
Twitter bootstrap+font-awesome buttons for Wordpress post tags
<footer>
<?php
if (get_the_tags()) $posttags = get_the_tags();
if ($posttags) {
$tagging = '';
foreach($posttags as $tag) {
$tagging = $tagging . '<a class="btn btn-action btn-mini" href="?tag='.$tag->slug.'"><i class="icon-tag"></i> '.$tag->name .'</a>'. ' ';
}
}
?>
<?php // Display the tags ?>
<p>Tags: <?php echo $tagging; ?></p>
</footer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment