WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Event Theming: Printing fields out of the array (2 posts)

  1. red.rover
    Member
    Posted 1 year ago #

    I'm using 'event-single.php' to theme my page. It's in the correct location because I can put test code in and it outputs.

    I want to output certain parts of the event so I can choose where they go etc - it's the Drupal in me to do so. A partial of my print_r of my $EM_Event object outputs:

    EM_Event Object
    (
        [event_id] => 5
        [post_id] => 3293
        [event_slug] => quintessential-brioche
        [event_owner] => 1
        [event_name] => Quintessential Brioche
        [event_start_time] => 11:00:00
        [event_end_time] => 14:30:00
        [event_all_day] => 0
        [event_start_date] => 2012-05-26
        [event_end_date] => 2012-05-26
        [post_content] => Aenean lacinia bibendum nulla sed consectetur. More Text.
        [event_rsvp] => 1
        [event_rsvp_date] => 2012-05-26
        [event_spaces] => 0
        [location_id] => 4
        [recurrence_id] =>
        [event_status] => 1
        [event_date_created] =>
        [event_date_modified] =>
        [blog_id] =>
        [group_id] => 0
        [event_attributes] => Array
            (
                [Presenter] => Alison Thompson
            )

    And I'm attempting to target it using either of this code in the theme:

    print $EM_Event['event_name'];
    print $EM_Event->event_name;
    print $EM_Event['event_attributes']['Presenter'];

    But it doesn't output anything. I'm sure I'm targeting it correctly.. could anyone help?

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    hi,

    you can try the series of tutorials here - http://wp-events-plugin.com/tutorials/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic