The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › make div ‘classes’ the post tags
In a for loop going through all posts how can I append all the tags of the post as part of the class of a div?
$page_name = $wp_query->post->post_name; query_posts(‘category_name=’. $page_name .’&posts_per_page=-1&orderby=date&order=DESC’); ?>
Sorry, no posts matched your criteria.
so for example if one post had 3 tags as: Photo, Outside, Ground it would be marked up as
Very easy!
Nicely done. Thank you very much.