Skip to content

Instantly share code, notes, and snippets.

View paulc010's full-sized avatar

Paul Campbell paulc010

View GitHub Profile
@paulc010
paulc010 / tw-wp-post-tags.php
Created March 27, 2012 09:26
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>'. ' ';
}
}
?>