custom taxonomy as class in wrapping div
-
Hi all, I’ve been trying to create a portfolio with the isotope jquery plugin.
I’ve got the loop to work and to filter based on this:
$categories=get_categories('taxonomy=types');
My question is how do I get the taxonomy=types tags to display as a class in my div wrapping my posts? I tried using this:
<?php $categories=get_categories('taxonomy=types'); foreach($categories as $category) { echo $category->name . ' '; } ?>
but that gets every single tag under the taxonomy types and thus the isotope filter doesn’t work any help or a point in the right direction would be greatly appreciated!
Tahnks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘custom taxonomy as class in wrapping div’ is closed to new replies.