Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Forum: Reviews
    In reply to: [Expire posts] Dangerous

    I got it… ??

    I need my posts expire in 30 days. Fixed $expiration_time in ‘2635200’; equivalent to one month and modify this code:

    $curtime = time();

    $howlong = $curtime – $postdate;

    echo $howlong;

    if ($howlong >= ‘2635200’ ) {
    $info = array(
    ‘ID’ => $postid,
    ‘post_status’ => ‘private’
    );

    Do not delete my posts, mark them as ‘private’.

    The values “30 days” or “1 month” did not work.

    Thanks!

    Forum: Reviews
    In reply to: [Expire posts] Dangerous

    It happened to me too.

    is an error generated by the time format.

    When I put in expiration time 9999999999 days, ( 10 numbers 9 ) all posts are expired.
    if I put 999999999 ( 9 numbers 9 ) the posts don’t expire.

    Please, help-me with format… I altered field epw_setting_time for text ( it was hidden ) to see the returned value and the value was 1470244741 ( timestamp ).

    In general wordpress, the format time is d/m/Y.

    Help-me, please! This plugin are PERFECT for my website but I need solve this problem. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)