• 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 meta tags from archive view -Lifestyle theme

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 meta tags from archive view -Lifestyle theme

This topic is: not resolved

Tagged: archives, lifestyle theme, meta data

  • This topic has 10 replies, 5 voices, and was last updated 11 years, 4 months ago by DTHkelly.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • January 10, 2014 at 8:19 am #84371
    melinwloo
    Participant

    Hello,

    How do I remove the category and tags listed on the archive pages of my site? I still want them on the individual blog posts.
    (The areas where it says Filed under:... and Tagged with:...)

    http://www.empressofdirt.net/blog/

    Thank you,

    http://www.empressofdirt.net/blog/
    January 10, 2014 at 8:29 am #84375
    Genesis Developer
    Member

    add this code in your functions.php file

    add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
    function sp_post_meta_filter($post_meta) {
    if (is_single() ) {
    $post_meta = '[post_categories before="Filed Under: "] [post_tags before="Tagged: "]';
    return $post_meta;
    }else{
      return ;
    }
    
    }

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    January 10, 2014 at 8:48 am #84382
    melinwloo
    Participant

    I added the code to the bottom of my functions.php file in my Lifestyle theme and the meta tags are still visible.

    January 10, 2014 at 9:16 am #84396
    Genesis Developer
    Member

    I tested and this is working for me

    add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
    function sp_post_meta_filter($post_meta) {
      if (is_single() ) {
        $post_meta = '[post_categories before="Filed Under: "] [post_tags before="Tagged: "]';
        return $post_meta;
      }else{
        return "";
      }
    }

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    January 10, 2014 at 10:39 am #84425
    melinwloo
    Participant

    It's still not working for me. Does it matter where in functions.php the code is placed?

    I've checked the file on my cpanel and refreshed in two browsers without any luck.

    January 13, 2014 at 8:12 am #84955
    masonjarsalads
    Member

    This worked for me at the end of my php file....I am using the sample theme. I've tried several different codes at this point.

    add_filter( 'genesis_post_meta', 'remove_post_meta_home_page' );
    function remove_post_meta_home_page($post_meta) {
    if ( !is_home() ) {
    $post_meta = '';
    return $post_meta;
    }}

    January 15, 2014 at 12:57 pm #85375
    melinwloo
    Participant

    I'm not just trying to remove it from the home page but the archive pages as well. Tried @masonjarsalads' suggested code and tags and categories are still visible.

    January 15, 2014 at 1:32 pm #85380
    Genesis Developer
    Member

    Are you using simple edit plugin? Disable it and check again


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    January 15, 2014 at 1:47 pm #85386
    melinwloo
    Participant

    @Genwrock It worked. Thank you.

    In case anyone else has the problem,

    I disabled the Genesis simple edit plugin and cleared the cache.
    Saved a copy of my Lifestyle functions.php file (Appearance-> Editor ->functions.php)
    Used the code provided (above) by @Genwrock - added it to the end of my Lifestyle functions.php file
    Cleared my browser cache
    Refreshed my page

    Now the categories and tags do not appear under archive listings. Phew!

    Now to figure out how to get rid of the gap between archive listings...

    October 9, 2014 at 11:40 pm #127313
    Gianmaria
    Member

    Hello Melinwloo,

    how did you add an archive page?

    I only (I think) can specify an archive template but it's not what I want... I want a simply month by month archive...

    thanks
    bye
    Gianmaria

    October 10, 2014 at 7:21 am #127326
    DTHkelly
    Member

    Some reference:

    Custom Archive Page Template in Genesis

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 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

© 2026 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