Support

Home Forums Event Espresso Premium Custom Template Add-On – Adding Additional Fields

Custom Template Add-On – Adding Additional Fields

Posted: April 17, 2014 at 7:15 pm

Viewing 3 reply threads


Greg Davis

April 17, 2014 at 7:15 pm

Hi guys – I am setting up the custom template plugin with the Calendar Table add-on and my client has a need for a couple additions. Can we add the event time and the attendee limit info (like 8/24)?


Dean

April 18, 2014 at 3:39 am

Hi Greg,

Yes this can be done by editing the template file accordingly. They are relatively simple to modify with basic HTML and PHP knowledge. You could event copy one of the template plugins and create a new template plugin should you wish to avoid update issues.

https://eventespresso.com/wiki/custom-templates-addon-create-a-template/


Greg Davis

April 18, 2014 at 4:27 am

Thanks Dean, that is good news. Is there a place where I can find the field names that I want to work with (like the event time and the number of registered attendees)?

Greg


Dean

April 18, 2014 at 5:18 am

Hi,

There is an object array called $events, and a foreach that splits this up into individual objects called $event.

In this array are the different options. You can var_dump() them, but I made you a list below.

You can access them within the foreach like so – $event->start_time

To get the attendee count you may need to use do_shortcode() with the [ATTENDEE_NUMBERS] shortcode.

id
event_code
event_name
event_desc
display_desc
display_reg
event_identifier
start_date
end_date
registration_start
registration_end
registration_start
registration_end
visible_on
address
address2
city
state
zip
phone
venue_title
venue_url
venue_image
venue_phone
virtual_url
virtual_phone
reg_limit
allow_multiple
additional_limit
send_mail
is_active
event_status
conf_mail
use_coupon
use_groupon
category_id
coupon_id
tax_percentage
tax_mode
member_only
post_id
post_type
country
externalURL
early_disc
early_disc
early_disc
question_groups
item_groups
event_type
allow_overflow
overflow_event
recurrence_id
email_id
alt_email
event_meta
wp_user
require_pre
timezone_string
likes
submitted
start_time
end_time
event_cost
venue_name
venue_address
venue_city
venue_state
venue_zip
venue_country
venue_meta
venue_id

Viewing 3 reply threads

The support post ‘Custom Template Add-On – Adding Additional Fields’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso