Support » Themes and Templates » Remove Post Meta from Category Page?

  • I am trying to remove the post meta from only the category pages in my theme. I have this function to modify the post meta function, but don’t know how I can add an if (is_category() argument in there to completely remove post meta.

    /** Customize the post meta function */
    add_filter( 'genesis_post_meta', 'post_meta_filter' );
    function post_meta_filter($post_meta) {
    if (!is_page()) {
        $post_meta = '[post_categories]';
        return $post_meta;
    }}

    I tried doing:

    /** Customize the post meta function */
    add_filter( 'genesis_post_meta', 'post_meta_filter' );
    function post_meta_filter($post_meta) {
    if (!is_page()) {
        $post_meta = '[post_categories]';
    elseif (is_category()) {
        $post_meta = '';
        return $post_meta;
    }}}

    But no luck, it doesn’t work. Anything else?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Please post in the Studiopress support forums.

    Scott

    (@spinolaconsulting)

    Please post in the Studiopress support forums.

    Really? That’s you’re answer?

    I searched this forum and came upon this post (which is very likely how EVERYONE lands on a post) in the hopes that it would solve a problem I’m having with my site. Who the F cares what category it’s in?

    Nobody BROWSES forums. They SEARCH them. The 90s era of usenet forums and their precious categorizations are done. Get over it. They weren’t even followed back then.

    If you have an answer and want to share, give it. If not, [ personal comment moderated ].

    Spinola Consulting – I was not asking for you to post in a different category here at wordpress.org.

    You have purchased a theme from a premium provider and support is given at their site (where I am also a mod 😉 ).

    It’s policy here at wordpress.org to send anyone who needs support for a theme they PAID FOR, which includes support, to go to where they bought the theme and get support there.

    ALso? Telling a mod to shut the f up is cause for banning. In both places.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @spinolaconsulting, I’ve edited out your comment as it does not contribute to any reasonable conversation.

    Maintain a civil attitude while replying.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove Post Meta from Category Page?’ is closed to new replies.