the_category – problem forcing no styling
I’m trying to include the_category tag in the loop on my Index page to make something like:
“Posted on August 18, 2007 at 2:25 pm in Music”
tacked on the top of my post.
However, the output is putting a list around the category. I thought the default was “usage lists categories with no separator other than a space.”.
<p>Posted on <?php the_time(‘F j, Y’); ?> at <?php the_time(‘g:i a’); ?> in <?php the_category(); ?></p>
<p>Posted on August 18, 2007 at 2:25 pm in <ul class=”post-categories”>
What gives? I simply want the tag to output the category with no lists or any formatting so it doesn’t look out of place!
- The topic ‘the_category – problem forcing no styling’ is closed to new replies.