• 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

Modern Portfolio not show blog post dates

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 › General Discussion › Modern Portfolio not show blog post dates

This topic is: not resolved

Tagged: blog post date, dates, modern portfolio

  • This topic has 11 replies, 4 voices, and was last updated 11 years, 1 month ago by kworthington.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • March 16, 2014 at 11:51 am #95164
    kworthington
    Member

    Hello!

    We are using the Modern Portfolio theme. The blog posts are not showing dates on the Blog page, nor the single blog post pages. I don't see an option to add it anywhere. Is there some custom code I can add to functions.php to add this functionality?

    Thanks.

    March 16, 2014 at 12:05 pm #95165
    Sridhar Katakam
    Participant

    Can you provide the URL of your site?


    Genesis Tutorials | Follow me on Twitter

    March 16, 2014 at 1:14 pm #95190
    kworthington
    Member

    http://tracyguarino.com/

    March 16, 2014 at 8:56 pm #95242
    Sridhar Katakam
    Participant

    Can you elaborate on your blog page setup? Do you have it set in Settings > Reading?

    Have you tried deactivating all plugins and seeing if it makes a difference?

    Are you using any custom template files?


    Genesis Tutorials | Follow me on Twitter

    March 17, 2014 at 12:31 pm #95346
    kworthington
    Member

    Thanks for your replies.

    In Settings > Reading, I have the "A static page (select below)" radio button selected: Home as the Front Page, and "Blog" as the Posts Page.

    I deactivated all plugins. It did not have any effect on showing the dates for posts.

    I am not using any custom templates.

    Any other ideas? I have already run out of ideas myself.

    March 23, 2014 at 6:09 pm #96278
    neilgee
    Member

    does this work in functions.php

    /** Customise the post-meta info function */
    add_filter( 'genesis_post_info', 'genesischild_post_info' );
     
    function genesischild_post_info($post_info) {
        if (!is_page()) {
        $post_info = 'Posted on [post_date] [post_comments] [post_edit]';
        return $post_info;
        }
    }

    Neil Gee
    WP Beaches
    Coolest Guides

    March 23, 2014 at 7:19 pm #96286
    kworthington
    Member

    Thanks for the reply, but that didn't add the dates. URL: http://tracyguarino.com/tracy-guarino-new-ceo-forcex-inc/ … for example...

    March 23, 2014 at 7:33 pm #96292
    neilgee
    Member

    does it work without the conditional...

    function genesischild_post_info($post_info) {
    		$post_info = 'Posted  on [post_date]  [post_comments] [post_edit]';
    		return $post_info;
    		}
    add_filter( 'genesis_post_info', 'genesischild_post_info' );

    Neil Gee
    WP Beaches
    Coolest Guides

    March 23, 2014 at 7:38 pm #96293
    kworthington
    Member

    No, it still does not show up, even without the conditional.

    March 23, 2014 at 11:51 pm #96347
    AnitaC
    Keymaster

    Not sure if this is the cause - but I ran the CSS through the W3C validator and it caught this --> You have two of these /* and only one of these */

    #title a::before {
    	/*
    	background: url('http://tracyguarino.com/wp-content/uploads/2013/08/tg-276x300.png') no-repeat center left;
    	display: inline-block;
    	height:75px;
    	margin-right: 16px;
    	margin-right: 1rem;
    	padding: 3px 4px;
    	padding: 0.1875rem 0.25rem;
    	text-align: center;
    	width:69;
    	/*	
    	background-color: #FBC926;
    	border-radius: 50%;
    	color: #fff;
    	content: "TG"; /* Used to display the letter in the header logo */
    	cursor: pointer;
    	display: inline-block;
    	height: 70px;
    	line-height: 2.1;
    	margin-right: 16px;
    	margin-right: 1rem;
    	padding: 3px 4px;
    	padding: 0.1875rem 0.25rem;
    	text-align: center;
    	width: 70px;
    	*/
    }

    I am using this theme on a client - you are using the NON-Html version like I am. The post info is coming through fine for me.

    Do you have the Genesis Simple Edits plugin installed? It looks like you've modified the footer and you could have also modified the post-info section.


    Need help with customization or troubleshooting? Reach out to me.

    March 24, 2014 at 7:41 am #96391
    kworthington
    Member

    Thanks for the reply. Those ideas did not work for me, though I did fix my CSS, so thanks for that.

    I had this in my functions.php:

    remove_action( 'genesis_before_post_content', 'genesis_post_info' );

    The above removes the date of the post and the "Leave a Comment" link. We want that link gone, but we want to leave the date. Any ideas?

    March 24, 2014 at 7:44 am #96393
    kworthington
    Member

    Please disregard. I got it.

    The effect of uncommenting:
    remove_action( ‘genesis_before_post_content’, ‘genesis_post_info’ );

    and adding:

    function genesischild_post_info($post_info) {
    $post_info = 'Posted on [post_date]';
    return $post_info;
    }
    add_filter( 'genesis_post_info', 'genesischild_post_info' );

    Makes it just show the date. Thanks everyone for your help. I really appreciate it.

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘General Discussion’ 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