On the main blog page, I don’t want the category to be listed before the post title. My index.php has the following code, does this part contain the category stuff I need to edit? Or is it elsewhere? I don’t want to just start deleting things as I have a tendency to break sites 🙂
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><span><?php the_category(', ') ?> </span> → <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
- The topic ‘How to remove category name from post title?’ is closed to new replies.