Support

Home Forums Event Espresso Premium How to embed the events table on another website

How to embed the events table on another website

Posted: November 20, 2018 at 9:05 pm

Viewing 3 reply threads


JohnB

November 20, 2018 at 9:05 pm

Hi guys,
On my main site I have inserted the shortcode

[ESPRESSO_EVENTS_TABLE_TEMPLATE sort=DSC category_slug=test-tag-course table_search=false reg_button_text=’more info…’]

I want to get the same table inserted into a page on another related site
Have tried
<div style=”width:80%; height: 300px;”>
<iframe src=”https://www.tatsa.com.au?event_list=iframe&#8221; width=”100%” height=”100%”></iframe>
</div>

This displays differently and is not very pleasing to the eye, and it is picking up a course/event that has long closed.

Is there another shortcode I can use?

Thank you


Tony

  • Support Staff

November 21, 2018 at 4:41 am

Hi John,

<div style=”width:80%; height: 300px;”>
<iframe src=”https://www.tatsa.com.au?event_list=iframe” width=”100%” height=”100%”></iframe>
</div>

Is telling EE to display its own event_list within the iframe, it’s a custom link we created specifically for displaying the events on another page.

The only way to do what you are requesting is to load the page with the [ESPRESSO_EVENTS_TABLE_TEMPLATE] shortcode on within it’s own iframe (just change https://www.tatsa.com.au?event_list=iframe to the url of the page you want to use) but note that it will load the entire page, include header, footer etc.

An iframe basically loads any page within a page so whatever you see on the page will load in the iframe, we don’t have anything like that for the table view template at this time.


JohnB

November 21, 2018 at 3:44 pm

Thanks Tony,

Any suggestions on a work around to display the current course list on a page on another site or to promote them?


Josh

  • Support Staff

November 21, 2018 at 6:03 pm

Hi John,

If the other site is a WordPress site, then you could use this plugin:
https://github.com/eventespresso/ee-code-snippet-library/blob/master/shortcodes/jf_other_site_event_list.php

A few notes about the above linked plugin:
You install & activate this plugin on the site that doesn’t have Event Espresso
Add this shortcode to a page on that site:
[other_site_event_list url=https://{your ee site url}]

Viewing 3 reply threads

The support post ‘How to embed the events table on another website’ 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