Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
isotope.category.codeblock.php
<?php
$categories = get_the_category(get_the_ID());
foreach( $categories as $category ) {
echo "<span class='category'>$category->slug</span>";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.