WP plugin code help please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rogueteens
    So fucking bland
    • Jul 2006
    • 8005

    #1

    Tech WP plugin code help please

    I'm trying to change a file in the Wordpress pluging SNAP, i'm trying to change the bit where it retrogradily posts old posts to tumblr.


    This is the line i need to change ...

    Code:
    $postDate = (($options['useOrDate']=='1' && $post->post_date_gmt!='0000-00-00 00:00:00')?$post->post_date_gmt:gmdate("Y-m-d H:i:s", strtotime($post->post_date)))." GMT";
    the part that says "$post->post_date" posts the wp post onto tumblr with the date it was added to wp, instead i want it to post it with the current date, how do i do that?


    Thanks
    Free traffic and backlinks from one of the fastest growing adult pinsites on the net - SAUCY PICTURES!
    Easily my best performing webcam sponsor - CLICK HERE!!
  • VRPdommy
    Too lazy to set a custom title
    • Oct 2014
    • 13000

    #2
    First, I know you can find a page on the net that has all the wp variables. You should have one for reference.

    Since that is php, you only need the data var for php

    PHP: getdate - Manual

    Hope that helps.

    Comment

    • just a punk
      So fuckin' bored
      • Jun 2003
      • 32393

      #3
      $postDate = gmdate("Y-m-d H:i:s", time())." GMT";
      Obey the Cowgod

      Comment

      • rogueteens
        So fucking bland
        • Jul 2006
        • 8005

        #4
        thank you, thank you both so much!
        Free traffic and backlinks from one of the fastest growing adult pinsites on the net - SAUCY PICTURES!
        Easily my best performing webcam sponsor - CLICK HERE!!

        Comment

        Working...