• 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

Remove post date

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 › Remove post date

This topic is: resolved

Tagged: remove date on post

  • This topic has 8 replies, 5 voices, and was last updated 11 years, 11 months ago by rfmeier.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • June 13, 2013 at 5:28 pm #45775
    Herman
    Participant

    How do I remove "posted on" at the top of every post in focus theme without modifying genesis framework files?

    I'd like the posts to be evergreen.

    http://kneejointpainremedy.com/
    June 13, 2013 at 6:12 pm #45784
    rfmeier
    Member

    Hello,

    Within your functions.php file, do you have code that begins with add_filter( 'genesis_post_info' ?


    Ryan Meier – Twitter

    June 14, 2013 at 12:07 am #45819
    vividvilla
    Member

    Add this code in functions.php

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


    Vivek R – @vividvilla
    Genesis Child Theme Designer and Blogger at WPStuffs.
    For affordable Genesis Child Theme design and Customization Contact me here

    June 14, 2013 at 5:35 am #45842
    Herman
    Participant

    Vividvilla ..I got a fatal error after adding the code

    Fatal error: Cannot redeclare post_info_filter() (previously declared in /home/kneejoin/public_html/wp-content/themes/focus/functions.php:17) in /home/kneejoin/public_html/wp-content/themes/focus/functions.php on line 65

    rfmeier - I don't see that code

    Thanks

     

    June 14, 2013 at 5:51 am #45850
    pxforti
    Participant

    Change the name of the function: eg,

    add_filter( ‘genesis_post_info’, ‘post_info_custom_filter’ );
    function post_info_custom_filter($post_info) {
    if (!is_page()) {
    $post_info = ‘Written by  [post_author_posts_link]  [post_comments]  [post_edit]‘;
    return $post_info;
    }
    }


    writeNowDesign
    WordPress and Ecommerce Website Design

    June 14, 2013 at 5:56 am #45851
    Brad Dalton
    Participant

    You may be interested in this Herman http://www.wpbeginner.com/opinion/why-you-should-not-remove-dates-from-your-wordpress-blog-posts/


    Tutorials for StudioPress Themes.

    June 14, 2013 at 6:22 am #45856
    rfmeier
    Member

    Aside from Brad's advice (which is what I would follow), the error: 'Cannot redeclare post_info_filter()' means it is already defined within your functions file, so you just have to look for that function.

    If you really wanted to remove the date, find the [post_date] within the post_info_filter function and that will remove [post_date] from the string.


    Ryan Meier – Twitter

    June 14, 2013 at 8:55 am #45906
    Herman
    Participant

    Brad thanks for the advice..after reading your article I think I'll create a resources page instead and leave the post dates as is.

    Ryan..appreciate your input especially from another runner:-) although I only run 3 miles/day.

    June 14, 2013 at 9:02 am #45910
    rfmeier
    Member

    Herman,

    Someone who runs 3 miles a day is a runner! Good luck with your site.


    Ryan Meier – Twitter

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Remove post date’ is closed to new 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