Support

Home Forums Event Espresso Premium How to use layout/page builder plugins to create event page

How to use layout/page builder plugins to create event page

Posted: August 15, 2016 at 8:18 am


cullingford

August 15, 2016 at 8:18 am

Hi

I am using a layout/page builder WordPress plugin to create my posts and pages, how can I do the same when creating events? Is there anyway of regaining access to these content builder plugins for use in event espresso?

Thanks in advance.


Seth Shoultes

  • Support Staff

August 15, 2016 at 11:40 am

Hi there,

The content builder developers will most likely need to build in support for Event Espresso plugin into their plugins.

If you want to display an Event Espresso ticket selector in one of your custom pages, I would recommend using the ticket selector shortcode from the event. Here’s a screenshot: http://www.screencast.com/t/5061uAlSyiGm

Hope that helps. Please let us know if you have any further questions.


cullingford

August 16, 2016 at 1:43 am

I think the issue is that event espresso uses the following url to edit events:
domain.com/wp-admin/admin.php?page=espresso_events&action=edit&post=108
while all other post types use this url to edit:
domain.com/wp-admin/post.php?post=720&action=edit

Is there anyway to treat the events as regular post types? For my example of post ID 108 I tried domain.com/wp-admin/post.php?post=108&action=edit but got the message: You are not allowed to edit posts in this post type.

Please advise a workaround to enable layout builders on event espresso events and venues, given these custom posts are handled in an unusual way.

Thanks in advance.


cullingford

August 16, 2016 at 1:54 am

The following function.php addition works for other custom post types but not for espresso events. Any suggestions?

add_filter('avf_builder_boxes', 'add_builder_to_posttype');

function add_builder_to_posttype($metabox)
{
	foreach($metabox as &$meta)
	{
		if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout')
		{
			$meta['page'][] = 'espresso_events'; /*custom post*/
		}
	}
	

	return $metabox;
}


Josh

  • Support Staff

August 16, 2016 at 9:28 am

We suggest contacting the theme author for support with their theme/plugins. The reason that Event Espresso uses custom post types that load on the admin.php route allows for functionality that isn’t quite available on the post.php page. Other themes and plugins have no trouble loading their scripts when coded to allow for this.


cullingford

August 16, 2016 at 8:17 pm

I have tried other layout builders and they too fail to display in the event espresso posts. Please advise how to go about this, I am hoping to get the Enfold Avia Layout Builder working with Event Espresso.

This is the documentaion where I obtained the code above: http://www.kriesi.at/documentation/enfold/use-the-layout-builder-with-any-post-type/

I can confirm that it works with other custom post types but not Event Espresso custom post types.


Josh

  • Support Staff

August 17, 2016 at 1:06 pm

One way you could go about this is add some debug code to your custom function. i.e. you put
print_r($meta);
just before
return $metabox;

Then you should see an array output to the page. I suspect that you won’t see array elements with id’s being ‘avia_builder’ or ‘layout’, which would cause this code to return false:
if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout')

You can verify the above.

Then you can open a support thread here:
http://www.kriesi.at/support/forum/enfold/

and ask them if the script from the blog post needs to be updated, and you can copy/paste the output from printing the $meta array to the screen, which will help narrow things down.


cullingford

August 21, 2016 at 1:40 am

Please provide a list of popular page/layout builders which work with Event Espresso, as I have tried the three most popular and none of them work with your strange configuration of the custom post type.

Other themes and plugins have no trouble loading their scripts when coded to allow for this.


Josh

  • Support Staff

August 22, 2016 at 6:49 am

I’m not familiar with page builder plugins (I’ve never had the need for one) to know which ones work with Event Espresso. I can suggest contacting the theme author (here’s the link again) as they may be able to help troubleshoot further.


cullingford

August 22, 2016 at 8:28 am

As you can see here I have already contacted the plugin supplier http://www.kriesi.at/support/topic/add-avia-layout-builder-to-custom-post-types-which-use-admin-php-page/.

I would like you to provide evidence to support your statement above that other themes and plugins support event espresso, because as far as I am aware event espresso is the problem.


Josh

  • Support Staff

August 22, 2016 at 8:54 am

because as far as I am aware event espresso is the problem.

That’s an incorrect assumption. Event Espresso 4’s editor page does not load on post.php. It just so happens that the page builder you’re using does a good job at preventing its scripts from loading on non-post.php routes. That’s actually best practice, but in your case, you want those page builder scripts to load on a specific non-post.php route.

In the theme support thread that you linked to, Josue said the that Advanced Layout built does not work outside post.php, and would require some third-party customization. The question to ask Josue is, would they be open to adding some filter hooks to the theme to allow their page builder to load on admin routes other than post.php. This way, there would be no need to make modifications directly to the theme things work. When a theme is modified as they suggest, then future updates to the theme can’t be applied.

I would like you to provide evidence to support your statement above that other themes and plugins support event espresso

This isn’t relevant and isn’t going to put you on a path to a solution, but I’ll humor you:
https://wordpress.org/plugins/event-espresso-smooth-integration/
https://wordpress.org/plugins/files-addon-for-event-espresso-4/
https://wordpress.org/plugins/pronamic-ideal/
http://www.showthemes.com/showthemes-faqs/#eeversion
https://www.elegantthemes.com/blog/resources/how-to-promote-your-next-event-using-wordpress-and-event-espresso


cullingford

August 22, 2016 at 9:19 pm

Those links you provided me are all specifically designed for event espresso, which is quite different from you claiming that event espresso is compatible with popular wordpress plugins.


Josh

  • Support Staff

August 23, 2016 at 7:51 am

Hi there,

We’re here to help. If you can find out if they can add hooks to their theme to allow adding support for non-post.php routes please send us an update.

Those links you provided me are all specifically designed for event espresso, which is quite different from you claiming that event espresso is compatible with popular wordpress plugins.

My bad, I thought that you meant you wanted a list of WordPress plugins that was evidence of 3rd parties that build Event Espresso-compatible solutions.
Here is quick list of a sampling of some popular WordPress plugins that are compatible with Event Espresso:

Advanced Custom Fields
Meta Slider
Jetpack
BuddyPress
bbPress
TinyMCE Advanced
All in One SEO Pack
AffiliateWP
User Role Editor

The support post ‘How to use layout/page builder plugins to create event page’ 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 ago ago

Topic Tags

Notifications

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