Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lasson

    (@lasson)

    Found my solution now, diamond multisite widgets plugin. Then I get the option to broadcast on any/all of the other blogs. Thank you Andrea though, will also look at this plugin.

    Trying to do this also… but it sticks to the value calculated in CODE#1 which means that next time it recalculates to the start date (1970).

    the code I try

    TEMPLATE CONTENT #0

    [ev_date]
    type = text
    date = true
    startDate = '1970/01/01'
    dateFormat = yyyy/mm/dd
    code = 0
    editCode = 1

    CODE #0

    $value = get_post_meta( $_REQUEST['post'], $title, true);
    if($value) {$enforced_value = date('Y/m/d', $value);}

    CODE #0 (also tried)

    $value = get_post_meta( $_REQUEST['post'], $title, true);
    if ($value) $enforced_value = date('Y/m/d', $value);

    CODE #1

    $a = explode("/",$value);
    $value = date('l, j F Y', mktime(0, 0, 0, $a[1], $a[2], $a[0]));

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