WordPress.org

Forums

[Plugin: Events Calendar] events aren't being published in the widget (11 posts)

  1. Spioradfanai
    Member
    Posted 6 years ago #

    Okay - so my event calendar sidebar widget is not showing events when I add them to the calendar. Previously one has shown up - now new one will create a post to the blog but will not show up in the sidebar. Any ideas?

  2. christineblack
    Member
    Posted 6 years ago #

    I'm having the same problem. I think it's with the code. The events are not being published..they are being "scheduled" to publish. I'll post if I can figure out how to fix this.

  3. christineblack
    Member
    Posted 6 years ago #

    Alright, you need to go into the file "ec_management.class.php" and add this code: "

    $statusPost = $_POST['EC_statusPost'];
    "

    after line 54 that reads " if(isset($_POST['EC_doPost'])) {."

    Then you need to comment out ", 'post_date' => date('Y-m-d H:i:s')" by putting "//" at the beginning of the line (should be line 59 or 60), and add in " , 'post_date' => current_time('mysql')."

    Hope that helps!

  4. klagreca
    Member
    Posted 6 years ago #

    still not working for me. I guess we'll sit tight and wait for a update. Thanks though!

  5. pedropizano
    Member
    Posted 6 years ago #

    same thing is happening to me, why would you say this is..is it because it has not been tested in wp versions higher than 2.6?

  6. chrishajer
    Member
    Posted 6 years ago #

    Looks like this widget is broken in 2.8 with the new Widget API. I was able to work around this by using the PHP Code Widget in my sidebar and then calling the function directly to get a list of events:

    <?php if (function_exists(SidebarEventsList))  {
    SidebarEventsList(5);
    }
    ?>

    5 is the number of events I wanted to show in the list.

  7. viceng
    Member
    Posted 6 years ago #

    it works in 2.7.1 not sure about 2.8

  8. erics123
    Member
    Posted 6 years ago #

    Thanks, chrishajer. Used the PHP Code Widget in the sidebar and added this code to get the Calendar to display as normal.

    <?php if (function_exists(SidebarEventsCalendar))  {
    SidebarEventsCalendar();
    }
    ?>
  9. SuperCurro
    Member
    Posted 6 years ago #

    Great!!! it works!!

  10. kwbridge
    Member
    Posted 6 years ago #

    thanks Chrishajer! Exactly what I needed.

  11. triplemoons
    Member
    Posted 5 years ago #

    I had this same issue...Used Chris's fix...But I want to disable the stupid rollover thing because it's all wonky...How would one do this?

Topic Closed

This topic has been closed to new replies.

About this Topic