• 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

Entry Meta Footer works one by one – but not together… why ?

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 › Entry Meta Footer works one by one – but not together… why ?

This topic is: not resolved

Tagged: entry, Entry Footer, meta

  • This topic has 4 replies, 2 voices, and was last updated 8 years, 9 months ago by Bensogo.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • July 23, 2016 at 6:49 am #190071
    Bensogo
    Member

    I want to make a few modification to the entry meta footer

    1) Only display CATEGORIES (not tags)
    //* Customize the entry meta in the entry footer (requires HTML5 theme support)
    add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
    function sp_post_meta_filter($post_meta) {
    $post_meta = '[post_categories] [post_tags]';
    return $post_meta;
    }
    IT WORKS WELL ALONE

    2) Remove text before
    //* Customize the post meta function
    add_filter( 'genesis_post_meta', 'bf_post_meta_filter' );
    function bf_post_meta_filter($post_meta) {
    if ( !is_page() ) {
    $post_meta = '[post_categories before=" "] [post_tags before="Tagged: "]';
    return $post_meta;
    }
    }

    IT WORKS WELL ALONE but it OVERRIDE THE FUNCTION JUST BEFORE...

    How to make them work together ?

    Thanks

    July 23, 2016 at 7:46 am #190072
    Genesis Developer
    Member

    It will work together. Make sure your post have both tags and category.


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

    July 23, 2016 at 7:58 am #190075
    Bensogo
    Member

    I do not want tags to be displayed - I have lot of tags in the blog

    My code is this one :

    //* Customize the entry meta in the entry footer (requires HTML5 theme support)
    add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
    function sp_post_meta_filter($post_meta) {
    $post_meta = '[post_categories]';
    return $post_meta;
    }
    add_filter( 'genesis_post_meta', 'bf_post_meta_filter' );
    function bf_post_meta_filter($post_meta) {
    $post_meta = '[post_categories before=" "]';
    return $post_meta;
    }
    //* Remove the comma in the entry meta in the entry footer (requires HTML5 theme support)
    add_filter( 'genesis_post_meta', 'sep_post_meta_filter' );
    function sep_post_meta_filter($post_meta) {
    $post_meta = '[post_categories sep=""]';
    return $post_meta;
    }

    RESULT HERE :

    https://onarto.com/art-news/

    SECOND function is ignored.

    July 23, 2016 at 8:49 am #190076
    Genesis Developer
    Member

    Remove all and try this code

    add_filter( 'genesis_post_meta', 'sep_post_meta_filter' );
    function sep_post_meta_filter($post_meta) {
       $post_meta = '[post_categories before="" sep=""]';
       return $post_meta;
    }

    You do not need to write the code for every parameters. In a shortcode you can pass multiple parameters.


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

    July 24, 2016 at 4:02 am #190110
    Bensogo
    Member

    Ok got it now !

    It works, thanks a lot !

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