• 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

websitestory

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 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 9, 2015 at 3:05 am in reply to: Place date before title #155543
    websitestory
    Member

    If anyone else is interested to do the same, the code Erik pointed me to worked great. My only change was no date format which then uses the date format in WordPress and I wrapped the date up in a span with a class so I can style it separately. Here it is:

    //* Add date before title
    add_filter( 'the_title', 'add_date_to_title', 10, 2 );
    function add_date_to_title( $title, $id ) {
    	// if not a wp-admin page
    	if ( !is_admin() ) {
    		// if it's inside the main loop
    		if ( in_the_loop() && is_main_query() ) {
    			// add date to title
    			$title = '<span class="date">' . get_the_date() . '</span>' . ' ' . $title;
    
    		}
    	}
    	return $title;
    }
    
    June 8, 2015 at 10:44 pm in reply to: Place date before title #155492
    websitestory
    Member

    Awesome thanks Erik! I will test it out and let you know how I go. It seems relatively straightforward.

    Cheers.

    June 8, 2015 at 9:14 pm in reply to: Place date before title #155484
    websitestory
    Member

    Hey Erik,

    Thanks for the reply. Almost like that but I'd like them on the same line e.g.

    9th June 2015 - This is the post title

    Hope that makes sense

    Cheers

    June 8, 2015 at 9:11 pm in reply to: First atempt with Genesis and Child Theme #155482
    websitestory
    Member

    Really impressive for a first attempt. I think it flows really nicely and I do love the pop of yellow throughout the site. It looks great on a mobile device as well. You must be really please with the result.

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

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

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