Jump to content


Photo

Remove Categories in Excerpt


  • Please log in to reply
1 reply to this topic

#1 vialis

vialis

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 05 October 2011 - 04:51 AM

Hi, how do I remove categories from showing in the excerpt on the posts page. I want to leave the date, and the author. Thanks.

#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 15907 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 05 October 2011 - 07:51 AM

Hi,

If you open the file called _theloop.php, which can be found here:

/wp-content/themes/ecopro/

Then do a search for this
 <div class="metabar">
underneath there should be this line of code:

 
	<?php _e('in',TDOMAIN);?> <?php the_category(', ') ?>,

Remove it and save the file, refresh your page nad the categories should no longer be showing up.