Upcoming Event Posts
Upcoming Evnts delets post and page content (3 posts)

  1. beng7980
    Posted 4 years ago #

    When I activate the plugin all the content for my posts and pages disappears

  2. ecurtain
    Posted 4 years ago #

    I had the same problem. When I activated the plugin, all content across my site disappeared.

  3. Zach Swinehart
    Posted 4 years ago #

    I also had this problem, but it was odd for me because the plugin WAS working at one point.

    After much persistence, I've figured it out and have a fix. Basically, there's an "if" statement that tells the plugin to show nothing if there are no upcoming events. I'm assuming the creators goal was to not have the box that says "upcoming events" show up when there are no events coming up, but what it actually does is remove everything attached to the $content function in WordPress, which happens to be all of the post content. :)

    Steps to fix:
    1. Open the main.php file from within the plugin folder.
    2. Scroll on down to line 185 and you'll see the following:
    if(count($upcomingEvents) < 1)
    return $ret;
    3. Delete those four lines of code.
    4. Enjoy the benefit of not having to figure this out with basically no php knowledge, like I did. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Upcoming Event Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic