WordPress.org

Ready to get started?Download WordPress

Forums

WP Tiles
[resolved] Show post date in "byline" area (7 posts)

  1. gruppoescursionistidegliangeli
    Member
    Posted 1 year ago #

    Hi! I have a question about this plugin: is there the way to show the post date in the lower area of the tile (where the "byline" property shows the Excerpt/Category)? That'd be very useful! Thank you!

    http://wordpress.org/extend/plugins/wp-tiles/

  2. maciejkurowski
    Member
    Posted 1 year ago #

    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/

  3. gruppoescursionistidegliangeli
    Member
    Posted 1 year ago #

    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...

  4. gruppoescursionistidegliangeli
    Member
    Posted 1 year ago #

    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

  5. Mike
    Member
    Plugin Author

    Posted 1 year ago #

    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!

  6. gruppoescursionistidegliangeli
    Member
    Posted 1 year ago #

    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

  7. Mike
    Member
    Plugin Author

    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.