• Resolved headworm

    (@headworm)


    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.

    https://www.ads-software.com/extend/plugins/wpbook-lite/

Viewing 1 replies (of 1 total)
  • Thread Starter headworm

    (@headworm)

    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

Viewing 1 replies (of 1 total)
  • The topic ‘Include date after title’ is closed to new replies.