• 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

mtombs

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 15, 2014 at 10:50 am in reply to: Customizing Post Meta #85352
    mtombs
    Participant

    Dear Sridhar,

    I've been able to modify your code a little to get exactly what I want. I have disabled the Simple Edits Plugin, and modified your code to:

    //* Customize the post meta function to show Tags on Category pages, Categories on Tag archives and both Tags and Categories on single Posts and views other than static Pages
    add_filter( 'genesis_post_meta', 'sk_post_meta_filter' );
    function sk_post_meta_filter($post_meta) {
    
    	if ( is_category() ) {
    		$post_meta = '[post_tags before="NEW TEXT: "]';
    	}
    	elseif ( is_tag() ) {
    		$post_meta = '[post_categories before="NEW TEXT: "]';
    	}
    	elseif ( !is_page() ) {
    		$post_meta = '[post_categories before="NEW TEXT: "][post_tags before="NEW TEXT: "]';
    	}
    	return $post_meta;
    
    }

    This has allowed me to modify the default ‘Filed under’ and ‘Tagged with’ text.

    Many thanks for your help.

    January 14, 2014 at 2:27 am in reply to: Customizing Post Meta #85115
    mtombs
    Participant

    Dear Sridhar,

    Many thanks for that.

    I tried using the code and it didn't work. Then I started disabling my plugins to see if that helped. As soon as I disabled Genesis Simple Edits the code worked a treat.

    Is there some way that I can still use Simple Edits with this code? Or, if not, is there a way that I can change the default 'Filed under' and 'Tagged with' text and still use the code. I tried inserting this into my functions.php file, but as soon as I did your code stopped working:

    `//* Customize the post meta function
    add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
    function sp_post_meta_filter($post_meta) {
    if ( !is_page() ) {
    $post_meta = '[post_categories before="Category: "] [post_tags before="Tag: "]';
    return $post_meta;
    }}

    Is there any way round this?

    Michael

    August 29, 2013 at 9:51 am in reply to: Disable Next/Previous on Home Page #59548
    mtombs
    Participant

    Dear Sridhar,

    Many thanks for your help. That worked a treat!

    Michael

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)

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