Really Simple Events
[resolved] Accessing data via PHP (4 posts)

  1. GreyhoundXX
    Posted 3 years ago #

    Is there an easy way to get the event data via PHP? I want to customize the output more and also set a conditional header, "Upcoming Events", that only shows if there are any events to display.


  2. huntlyc
    Plugin Author

    Posted 3 years ago #

    Sure, you can get a list of events from this function: hc_rse_get_events($listType, $showEvents)

    You'll want to supply the $listType variable, take a look at the function source code (It's not very complicated, honest)! http://plugins.trac.wordpress.org/browser/really-simple-events/trunk/really-simple-events.php#L441

    You'll want to var_dump() the output and see what you're dealing with... If you're going down this route, then in your theme or whatever, you'll probably want to get rid of my java script and css. That's easy enough to do, you just need to add these lines:

  3. GreyhoundXX
    Posted 3 years ago #

    Thanks, I just copied lines 161 - 200 from that file into my PHP file and edited as necessary. Very easy!

  4. huntlyc
    Plugin Author

    Posted 3 years ago #

    Nice one! If you need anything else, just give us a shout...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Really Simple Events
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.