• 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 post date please?

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 post date please?

This topic is: not resolved

Tagged: remove date

  • This topic has 3 replies, 3 voices, and was last updated 9 years, 8 months ago by carasmo.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 11, 2015 at 10:04 pm #170820
    josee
    Participant

    Hi I have this on my functions.php. I want ask if someone can help me to modify it for remove the post date, thanks a lot 😉

    //* 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 by', 'decor' ) . ' [post_author_posts_link] [post_comments] [post_edit]';
    return $post_info;
    }
    }

    http://tarotistas.tv
    November 12, 2015 at 7:47 am #170844
    Brad Dalton
    Participant

    It's added by default however you can filter the entire entry meta and remove or add shortcodes for specific functions.

    http://my.studiopress.com/snippets/entry-header/#customize


    Tutorials for StudioPress Themes.

    November 12, 2015 at 7:53 am #170845
    josee
    Participant

    Sorry, my php its noob level, like my english 😉

    Then i only have to add this at fuctions.php?

    <?php
    //* Do NOT include the opening php tag shown above. Copy the code shown below.
    //* Customize the entry meta in the entry header (requires HTML5 theme support)
    add_filter( 'genesis_post_info', 'sp_post_info_filter' );
    function sp_post_info_filter($post_info) {
    $post_info = 'by [post_author_posts_link] [post_comments] [post_edit]';
    return $post_info;
    }

    or also remove the actual code?:

    //* 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 by’, ‘decor’ ) . ‘ [post_author_posts_link] [post_comments] [post_edit]‘;
    return $post_info;
    }
    }

    Really thanks for the help!!

    November 12, 2015 at 8:04 am #170849
    carasmo
    Participant

    To remove the post date see this https://my.studiopress.com/snippets/post-info/ and the first box

    Copy that without the php opening and place that in your child theme functions.php, then edit the line where you see the short code for the post date.

    $post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';

    https://my.studiopress.com/snippets/post-info/ -- login required with your purchase of Genesis


    Genesis Theme Customization and Help

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