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

  1. gruppoescursionistidegliangeli
    Posted 2 years 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!


  2. maciejkurowski
    Posted 2 years 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;

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

    see how it looks like here:

  3. gruppoescursionistidegliangeli
    Posted 2 years 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
    Posted 2 years 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.

  5. Mike Martel
    Plugin Author

    Posted 2 years 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


  6. gruppoescursionistidegliangeli
    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?

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


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Tiles
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.