WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Show post date in "byline" area

[Resolved] Show post date in "byline" area

Viewing 6 replies - 1 through 6 (of 6 total)
  • maciejkurowski
    Member

    @maciejkurowski

    not without changing wp-tiles code.

    in wp-tiles-admin.php you add a line adding date to byline array:
    "date" => __( "Date" ),

    in wp-tiles.php search for switch ( $display_options['byline'] ) and add option:

    case 'date' :
    $byline = $post -> post_date;
    break;

    if you want to format your date you can do in in php

    see how it looks like here:
    serwer1317095.home.pl/autoinstalator/wordpress/

    gruppoescursionistidegliangeli
    Member

    @gruppoescursionistidegliangeli

    Great, I see it works! Thank you a LOT! I am just looking for how to format the date in php, since I’m a newbie in php. How (and where) do I tell it to show DD-MM-YYYY? Thank you in advance…

    gruppoescursionistidegliangeli
    Member

    @gruppoescursionistidegliangeli

    If you want to see the website I’m working on you can go to GEDA. Thank you in advance for helping me with formatting the date; the scheme I need is d/m/Y, but I don’t know where to write it.
    Federico

    Plugin Author Mike Martel
    Participant

    @mike_cowobo

    Hi guys, haven’t had much time to maintain this plugin recently, so it’s fantastic to see others are stepping in. Thanks @maciejkurowski! I’ll add this to the version in the repo!

    @federico: I’m adding the date setting to the WP.org version of the plugin now! I’ll add three options:
    1. per the settings in WPs ‘General Settings’
    2. dd-mm-yyyy
    3. mm-dd-yyyy

    Cheers!

    gruppoescursionistidegliangeli
    Member

    @gruppoescursionistidegliangeli

    Hey Mike! I saw the big improvements about the date in byline area. It’s amazing, but I have an issue that I can’t solve: the date that is displayed is always the same! Today is June 30th and if I write a post, the date displayed in the tile is always Feb 22 2013! What’s wrong with it?
    Thanks
    Federico

    Plugin Author Mike Martel
    Participant

    @mike_cowobo

    Hi Federico, how embarrassing.. it showed the date of the post the tiles are on, not of the tiles themselves! I am uploading version 0.5.1 now with a fix for this problem.

    Thanks,
    Mike

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Show post date in "byline" area’ is closed to new replies.