• Resolved brokeandbeautiful

    (@brokeandbeautiful)


    I upgraded Fashionistas to 1.3 recently and now each post is displaying the date published, and the date that the post was initially created as a draft resulting in two dates on posts that were saved as drafts at some point.

    I have tried commenting out the “created” date in template-tags.php, but then the posts that I created and posted in the same session display an error.

    My site: http://brokeandbeautiful.com

    Anyone have a fix?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello, try this code, it should work:

    time.entry-date.published.updated {
    visibility: hidden;
    }
    or
    time.updated {
    visibility: hidden;
    }
    Cheers,

    Vilius

    Thread Starter brokeandbeautiful

    (@brokeandbeautiful)

    Hello,

    Thank you for your response. Unfortunately, both codes simply hid all of the dates, and also off-centered my metadata below the article title (it’s live now, if you’d like to see). Everything has been working perfectly until this issue, and it’s only been a few days so I thought it was the update, but I think it may have happened just before the update was issued. Let me know if I can give any more info.

    Thank you again,
    Lindsay

    Thread Starter brokeandbeautiful

    (@brokeandbeautiful)

    Thanks very much for your help viliauskas.

    The fix was to go into template-tags.php and change:

    function athemes_posted_on() {
    	$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
    	if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) )
    		$time_string .= '<time class="updated" datetime="%3$s">%4$s</time>';

    to:

    function athemes_posted_on() {
    	$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';

    it solved the issue perfectly

    The above would work, but instead of modifying core theme files, its better to do it a better way

    Follow the link (theme’s support) for more details.

    http://athemes.com/forums/topic/author-and-date/#post-16289

    Thanks

    How can we replace published date with modified date in the latest version of Feshionistas theme?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Date displaying twice after update’ is closed to new replies.