Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @codimex

    I’m afraid I might be doo stupid to help here, I just hacked a solution that kinda worked for me ?? Although it looks like it only works if the events were added in the same month when they should be displayed (which is the case on my site, so it worked) – maybe try changing also the db query to use custom dates? So on line 168 you’d change

    $args = array ('scope'=>array($_REQUEST['start'], $_REQUEST['end']), 'owner'=>false, 'status'=>1, 'order'=>'ASC', 'orderby'=>'post_date','full'=>1);

    with something like this

    $args = array ('owner'=>false, 'status'=>1, 'order'=>'ASC', 'meta_key'=> 'event_date', 'orderby'=> 'meta_value','full'=>1,'meta_query' => array(array('key' => 'event_date', 'value' => $_REQUEST['start'],'compare' => '>='), array('key' => 'event_date', 'value' => $_REQUEST['end'], 'compare' => '<=')));

    if this doesn’t work, I’m afraid I don’t have other ideas ??

    • This reply was modified 1 year, 8 months ago by moocker.
    Thread Starter moocker

    (@moocker)

    Thanx a lot!
    I’ll try to see if I can somehow force the server admin to lower that value, or if not, it looks like it’s time to switch hosting providers ??

    I came here looking for a solution to the same problem, and since it seems several people ask for it every few months and doesn’t seem to exist, I made a dirty edit – and so far it seems to work OK. (you need to edit the plugin files for it to work, so it’ll have to be made again after every update, unfortunately – I don’t know how to do it better – perhaps someone will help with that)

    In the file wp-fullcalendar.php I edited the function ajax() and replaced 2 lines: (line 209-210 at the time I’m writing it)

    I replaced

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

    with

    $post_date = substr(get_field(‘event_date’), 0, 10);
    $post_timestamp = strtotime(get_field(‘event_date’));

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