I am trying to echo multiple catgory-slugs instead of the category-names in a Wordpress-Loop in the archive.php
My Code looks like this and I tried a lot so far, but nothing seems to work. All I achieved was to receive the first slug of a category, but not all of them:
<li class="<?php the_category( ' ' ); ?> ">
<div class="content">
<h4><?php the_title(); ?></h4>
</div>
</li>
Below code should work