WPBook Lite
[resolved] Include date after title (2 posts)

  1. headworm
    Posted 3 years ago #

    Hi, great plugin thanks.

    I would like to show the post date next to the post title on my facebook wall like this:

    post title | 16th November 2012

    I have tried to do this by editing publish_to_facebook.php line 110 from this:


    to this:

    $my_title=$my_post->post_title . ' | ' . $my_post->post_date;

    Which outputs

    post title | 2012-11-16 10:09:18

    The problem is I can't seem to format the date at all. Any pointers would be most appreciated.


  2. headworm
    Posted 3 years ago #

    Success at last! Just in case anyone else needs the same thing this is what I ended up with.

    $my_title=$my_post->post_title . ' | ' . mysql2date('l, jS F, Y @ ga', $my_post->post_date);

    Post Title | Saturday, 24th November, 2012 @ 9pm

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WPBook Lite
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic