Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Sweet! I works! Thanks Johnny!
    Only thing that’s not showing up in the calendar is the time. Instead it displays ‘3p’/’4p’/etc. at the place where the time should be. I have no idea where this is coming from?

    For anyboady who is interested this is what I did.
    I changed this at #189:

    $post_date = substr($post->post_date, 0, 10);
    $post_timestamp = strtotime($post->post_date);

    To:

    //my custom field is event_date_time
    $time_date = get_field('event_date_time');
    $post_date = substr($time_date, 0, 10);
    $post_timestamp = strtotime($time_date);

    IMPORTANT NOTE: The formatting of the dates in your custom field need to be the same as the formattimg in the wp-fullcalendar.php

    I changed the following:

    $post_date = substr($post->post_date, 0, 10);
    $post_timestamp = strtotime($post->post_date);

    to:

    //the metakey of my custom field is event_date_time
    $time_date = get_post_meta( $post->ID, 'event_date_time' );
    $post_date = substr($time_date, 0, 10);
    $post_timestamp = get_post_meta( $post->ID, 'event_date_time' );
    //the custom field is stored in the database in UNIX so did not use strtotime

    The fields are giving the same kind of results so figured it should work. But it did not because I think I also need to change the following:

    function wpfc_temp_filter_where( $where = '' ) {
        $where .= " AND post_date >= '".date("Y-m-d", $_REQUEST['start'])."' AND post_date < '".date("Y-m-d", $_REQUEST['end'])."'";
        return $where;
    }

    But I don’t understand this last piece of code.

    Can you help me out?

    Thanks for the response!
    Can you elaborate a little bit more on this?
    I am not a pro in PHP and I really need to make this work.

    I only have one custom field with a date. Not a start and end date.
    I have tried to modify $item but cannot make it work.

    Thanks in advance!

    @johnnyr209 Did you figured this out? I need to do something similar but cannot make it work.
    I have read someone made it work but the topic is closed so I cannot respond to this person.

    Thread Starter Marjon90

    (@marjon90)

    I solved it.
    I had to deactivate the N-Media Post and Meta Saving from Frontend plugin and now the calendar is showing on my page.

    Wait it is possible with the new updated version!
    But it only restricts to posting to a category.
    If user XYZ goes to ‘all posts’ he can still delete and edit posts from other categories.
    I really need these kind of restrictions too.

    I need this too!
    Anybody have an idea on how to make this happen?

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