ThemeShaper Forums » Thematic

[closed]

Remove/Add Meta - Specifically for a Category

(3 posts)
  • Started 10 years ago by kgoodman
  • Latest reply from Gigi
  • This topic is not resolved
  1. kgoodman
    Member

    Hi -
    I've read all the posts about how to remove meta. Success!

    However, my question is, is there a way to remove specific meta data for a specific category (e.g. date for category id **) and have the date appear in other blog posts? Issue revolves around how client wants to use WP as Blog and CMS.

    I assume it would be in functions.php but I'm struggling with the right filter. I've tried filtering out thematic_postheader_postmeta () with no luck.

    Any help is appreciated.

    Thanks!
    Kyndra

    Posted 10 years ago #
  2. See this post: http://forums.themeshaper.com/topic/thematic_postheader_postmeta-display-error-in-thematic-0961

    You could basically just do conditionals, like Chris has below, to display different things depending on the category:

    //	Custom Post Header Meta
    function childtheme_postheader_postmeta() {
        global $post;
        if (is_page()) { ?>
    
        <?php } else {
        	return '<div class="entry-meta"><span class="entry-date"><abbr class="published" title="' . get_the_time('Y-m-d\TH:i:sO') . '">' . get_the_time('F j, Y') . '</abbr></span></div>';
        } }
    add_filter ('thematic_postheader_postmeta', 'childtheme_postheader_postmeta');
    Posted 10 years ago #
  3. how would you declare which category with this code?

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.