Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Custom Template Add-On - Adding Additional Fields | Event Espresso - Staging Server

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

  • Support Staff

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.

http://staging.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

  • Support Staff

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 - Staging Server