WordPress.org

Forums

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

  1. GreyhoundXX
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/really-simple-events/

  2. huntlyc
    Member
    Plugin Author

    Posted 1 year 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:
    `wp_dequeue_script('hc_rse_js');
    wp_dequeue_style('hc_rse_styles');'

  3. GreyhoundXX
    Member
    Posted 1 year ago #

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

  4. huntlyc
    Member
    Plugin Author

    Posted 1 year 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

Tags

No tags yet.