Ready to get started?Download WordPress


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

  1. GreyhoundXX
    Posted 12 months 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 12 months 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 12 months 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 12 months ago #

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


You must log in to post.

About this Plugin

About this Topic


No tags yet.