Support

Home Forums Event Espresso Premium Integrate events in other custom post type

Integrate events in other custom post type

Posted: December 18, 2015 at 9:02 am


marijn

December 18, 2015 at 9:02 am

Because EE4 does not support multilingual setups (WPML). I’m trying to load the event into another post type created by PODS plugin which does support WPML.

In the CPT I created a relation to the event and I’m able to get the event ID and also stuff like the_title() work fine. However, I don’t seem to be able to get the rest of the data from the event in my post.

What function calls can I use to embed the event data in my post?

BTW I also tried using the shortcode [ESPRESSO_TICKET_SELECTOR] but it only gives the basic data and booking button, not even begin-end dates.


Josh

  • Support Staff

December 18, 2015 at 10:08 am

Hi there,

You can use any of the template tags listed on this page:

https://eventespresso.com/wiki/ee4-themes-templates/

Then if you require further info beyond what the template tags return, you can use the built in model objects to query the data:

http://developer.eventespresso.com/docs/ee-model-objects-and-custom-post-types/


marijn

December 18, 2015 at 10:29 am

Thanks for the quick reply.

Makes sense. I didn’t get how to use these but ok.
So if in the loop you can use these calls to get the data…

I’ve just added the espresso_event_reg_button() but this just makes a button link to the EE event post. It does not, like on the single event page, start the booking process.
Are there additional params/settings to get this working?

thanks


Josh

  • Support Staff

December 18, 2015 at 12:03 pm

The espresso_event_reg_button() template tag doesn’t start the booking process. It only displays a link to the single event page. To get a functioning ticket selector on another CPT, your best option is use the ticket selector shortcode.

The support post ‘Integrate events in other custom post type’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 3 years, 10 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!