I use a <span>
inside the loop and I would like to get each post format the post is containing as a class in separate spans
.
Example:
If the post format is video and private: I would like to render:
<span class="format-video"></span>
<span class="status-private"></span>
So far I have tried <span <?php get_post_format_string($class); ?>></span>
which did not work for me because this will render all the post formats and status in one span
, not in different spans
...