• 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

Post Meta Info

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 › Post Meta Info

This topic is: not resolved

Tagged: genesis, Metro Pro, Wordpress

  • This topic has 6 replies, 3 voices, and was last updated 8 years, 11 months ago by solarpow.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • October 23, 2014 at 4:04 pm #128893
    solarpow
    Member

    I am trying to show post meta Info to my site http://www.chaldean-catholic.org/ Date,Author Name,Leave a Comment ,

    I added below code in functions.php but it's not working ,I also used Genesis simple edits that is also not working ,any help would be appreciated

    add_filter( 'genesis_post_info', 'genesischild_post_info' );

    function genesischild_post_info($post_info) {
    if (!is_page()) {
    $post_info = 'Posted on [post_date] Written by [post_author] [post_comments] [post_edit]';
    return $post_info;
    }
    }

    http://www.chaldean-catholic.org/
    October 24, 2014 at 12:08 am #128919
    Brad Dalton
    Participant

    You cannot use the plugin and code at the same time.

    Disable the plugin and the code will work.


    Tutorials for StudioPress Themes & WooCommerce.

    October 24, 2014 at 12:58 am #128928
    solarpow
    Member

    I disabled but still not working

    October 24, 2014 at 1:25 am #128930
    Brad Dalton
    Participant

    Where did you paste the code and where did you want the meta to show?


    Tutorials for StudioPress Themes & WooCommerce.

    October 24, 2014 at 3:39 am #128937
    solarpow
    Member

    I pasted that code in metro pro functions.php ,I want meta to appear here ,please see image http://imgur.com/kPdElz9

    October 24, 2014 at 3:54 am #128938
    Genesis Developer
    Member

    try this once

    //* Customize the post info function
    add_filter( 'genesis_post_info', 'post_info_filter' );
    function post_info_filter($post_info) {
    
    	if ( !is_page() ) {
    		$post_info = __( 'Posted on', 'metro' ) . ' [post_date] ' . __( 'Written by', 'metro' ) . ' [post_comments] [post_edit]';
    		return $post_info;
    	}
    	
    }

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

    October 24, 2014 at 4:06 am #128939
    solarpow
    Member

    no ,not working

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

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