Support

Home Forums Event Espresso Premium EE 4 integration with Views by wp-toolset

EE 4 integration with Views by wp-toolset

Posted: May 6, 2014 at 10:35 am


Gabriel Solano

May 6, 2014 at 10:35 am

hi can you tell me where to remove EE cpt like described in paragraph below.

The process goes like this:

Remove the PHP that declared these custom types. Normally, you’ll remove them from functions.php in the theme. Once you do this, all your custom data will appear to have vanished. Don’t worry. It just doesn’t show.
Add it using Types. Make sure that you use the exact same slug. The description can be different but the slug is crucial. If it’s different, the old content will not show. Now, everything displays back as it was.
Converting custom fields
First, create custom field groups. You should leave them blank (without adding any fields). This is because we’ll go and add the existing fields to them.
Go to Types->Custom Fields Control. Select the checkboxes next to the fields you’re interested in and click on ‘bulk actions’ to select to add to a group. Choose the group. Then, select fields that have a type other than ‘textfield’, click on ‘bulk actions’ and choose to change the field types.
Voila! All your custom content now runs under Types control.


Josh

  • Support Staff

May 6, 2014 at 12:57 pm

Hi Gabriel,

Event Espresso uses custom post types differently than themes. If you follow the above guide and remove the code where it registers the espresso_events, contacts, and espresso_venues Custom Post types it will do more than hide the custom data, it will break core functionality. With that, we don’t recommend trying to remove the core Event Espresso custom post types.

If you want to see for yourself the many ways how removing the CPTs will break things, the file that Event Espresso uses to register its custom post types is /core/CPTs/EE_Register_CPTs.core.php. Please only try this on a testing setup, not a live site.


Gabriel Solano

May 6, 2014 at 1:47 pm

so if i want to use Views, what do you suggest i do? I’d like to use EE4 a few client sites but each require a bit of customization and Views would really help me out, any ideas?

-g


Gabriel Solano

May 6, 2014 at 1:48 pm

how about Pods or ACF (advan. custom fields)?


Josh

  • Support Staff

May 6, 2014 at 2:07 pm

We’ve tested and recommend using Advanced Custom Fields. ACF works out of the box with Event Espresso without making any modifications to the Event Espresso code.


Gabriel Solano

May 6, 2014 at 2:29 pm

ok but it works well with EE 4, correct?

will try and let you know.

thanks


Josh

  • Support Staff

May 6, 2014 at 2:31 pm

Event Espresso 4 works perfectly well with Advanced Custom Fields.

The support post ‘EE 4 integration with Views by wp-toolset’ 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