• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to Remove Post Meta from category archives?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to Remove Post Meta from category archives?

This topic is: not resolved

Tagged: category archive, remove meta

  • This topic has 5 replies, 2 voices, and was last updated 11 years, 10 months ago by Brad Dalton.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • September 5, 2013 at 6:02 am #60807
    EyeOfTheTiger
    Member

    Hi,

    I'd like to remove the post meta information from displaying on my category archive http://clothescatalogues.co.uk/category/womens-catalogues/ (see Simply Be excerpt) but still have it display on the single post page http://clothescatalogues.co.uk/simply-be/. What's the best way to do this please ?

    Thanks

    Mike

    http://clotheschttp://clothescatalogues.co.uk/category/womens-catalogues/
    September 5, 2013 at 6:44 am #60813
    Brad Dalton
    Participant

    Please copy the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++

    Note: The above code uses the old XHTML hooks and will not work on Genesis 2.0 HTML 5 enabled child themes however you can simply change the hooks in the code and it will work.


    Tutorials for StudioPress Themes.

    September 5, 2013 at 7:15 am #60815
    EyeOfTheTiger
    Member

    Hi Brad,

    Thanks for this, however i couldn't get it to work - i tried the code first off, then noticed your footnote about hooks and tried to understand and replace it so it looked like this, below and still didnt work - I dont really understand hooks so wasn't sure if I replaced the right parts with the right new parts.. Im using Magazine 2.1 theme with genesis 2.0.1 and 3.5.2 wp install

    add_filter ( 'genesis_post_meta' , 'remove_post_meta_category_archive' );
    /**
    * @author Brad Dalton
    * @example http://wp.me/p1lTu0-9P8
    */
    function remove_post_meta_category_archive($post_meta) {
    if (!is_category('womens-catalogues') ) {
    remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    $post_meta = '[post_categories] [post_tags]' ;
    return $post_meta;
    }

    September 5, 2013 at 7:45 am #60824
    Brad Dalton
    Participant

    This code will not work if you have the Genesis Simple Edits plugin activated because it also using the same filter hooks.

    I test all code i embed in these forums so i know it works on your theme. I also created a womens-catalogues category in the Magazine theme locally.

    The code above will work to remove post meta (Not post info) from your category archive womens-catalogues.

    Here's the video http://www.youtube.com/watch?v=wnHAm82x7yc


    Tutorials for StudioPress Themes.

    September 5, 2013 at 7:57 am #60826
    EyeOfTheTiger
    Member

    Hi Brad,

    Got it to work now - thanks very much for your help 🙂

    Regards

    Mike

    September 5, 2013 at 8:54 am #60843
    Brad Dalton
    Participant

    No worries Mike.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble