WordPress.org

Ready to get started?Download WordPress

Forums

Remove Post Meta from Category Page? (5 posts)

  1. futurepocket
    Member
    Posted 2 years ago #

    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?

  2. Please post in the Studiopress support forums.

  3. Scott
    Member
    Posted 1 year ago #

    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 ].

  4. 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.

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

    Maintain a civil attitude while replying.

Topic Closed

This topic has been closed to new replies.

About this Topic