Posted: March 2, 2017 at 3:07 am
I have defined additional fields for my events and would like to display some of them in table format. How can I find the names of those variables and then display them? |
|
Hi there, Here’s some information about customizing the table: |
|
Thanks for taking the trouble to respond, Seth, but this doesn’t help. I’ve been through all this with the help of Tony Warwick (do you know him? he was very helpful). My issue is that I have used the EE feature of adding Custom Fields for my events. They have a name and a value for each event. I need to be able to access such a variable and extract and display the content. This is not described in the examples you referred to. |
|
It sounds like your using custom fields – https://codex.wordpress.org/Custom_Fields That’s a standard feature within WordPress, the documentation doesn’t really go into details for custom fields as if your editing templates or adding customizations it would be expected that you are familiar with the above. For a guide on custom fields take a look here: http://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/ To pull a custom field within the event table template you are using you can use something like this:
‘key’ will be the ‘Name’ of your custom field, the |
|
Thanks again, Tony. That’s the tip I needed. |
|
Whilst we have no problem pointing you in the right direction if you need help (such as my reply above) we can not provide/support customizations, you need the help of a developer to make your customizations as the above is outside the scope of support for Event Espresso. If you prefer to add them yourself, you’ll need to learn how to use the EE models to pull in the information you need: Prices are assigned to ticets, tickets are assigned to the datetimes and datetimes are assigned to the event, so if you have the event you can pull the datetimes and then pull the tickets for the datetime. Price modifers can be output using the models from the ticket object. One method to finding the available methods on each object is using the Kint Debugger plugin and then wrapping the object in |
|
The support post ‘EE4 Event Table view: How can I display additional user-defined 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.