WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. headworm
    Member
    Posted 1 year 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:

    $my_title=$my_post->post_title;

    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.

    http://wordpress.org/extend/plugins/wpbook-lite/

  2. headworm
    Member
    Posted 1 year 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

About this Topic

Tags