ThemeShaper Forums » Thematic

[closed]

remove "posted in category" for specific categories

(1 post)
  • Started 4 years ago by gretchenlouise
  • This topic is not resolved
  1. gretchenlouise
    Member

    I'd like to remove the "Posted in: 'Category'" for two categories on my site (1,110). It must be code similar to what's found here http://forums.themeshaper.com/topic/hiding-category-meta-for-uncategorized but it's not the same, because it's not just Uncategorized, but a category called Archived as well.

    I found code at http://www.spanishseo.org/block-and-remove-wordpress-categories that works for other themes, but I wasn't sure how to implement it into Thematic and my functions.php. It replaces
    <?php the_category(', ') ?>
    in the post footer of archives.php or page.php with the following code:

    <?php foreach((get_the_category()) as $cat) { if (!($cat->cat_ID=='1,110')) echo 'category_nicename . '/">'. $cat->cat_name . '' . ', '; } ?>

    Thank you!

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.