Posted: December 22, 2020 at 5:08 am
|
Hi In order for event espresso to work with my theme I need to set the REST API base slug rest_base set to the plural version of the post type key. I try like this, but it doesn’t work… any idea what the rest_base slug should be?
|
Hi there, May I ask why your theme needs this to be changed?
Is the default for the espresso_events post type anyway.
Is the default for that value, meaning for the snippet above both of those can be remove leaving just:
However, looking at your site with the above snippet this EE event posts should show on Have you disabled the above? If not, where do you have it saved currently? |
|
|
Hi I used that code to change the rest_base to singular The issue is that as soon as I set the rest_base like this, I get an error in my themebuilder… thx |
In your opening post, you set it to the plural, but here you are using the singular?
Why are you setting EE’s posts to use the singular? Which theme? |
|
|
I know, i just set it to singular to check if that piece of code works, it does. plus, I have no idea what the plural of ‘espresso_events’ is, it’s allready plural. sorry for the confusion here. I am using yootheme builder for my theme and i requires that the rest_base is set to plural from the posttype key. in this case the key is ‘espresso_events’. As I mentioned, this doesn’t happen with other posttypes. If i set the rest_base of posttype ‘member’ to ‘members’ with that same piece of code. The posttype shows up in the builder |
In short, Event Espresso doesn’t currently support page builders and by the looks of it, YooTheme Builder doesn’t support EE events. I checked their documentation for this here: https://yootheme.com/support/yootheme-pro/wordpress/dynamic-content#custom-post-types So I now understand a little more of what you are trying to do, but as you mentioned, the post type key for EE events is plural already with In any case, I think even if you managed to get to EE posts to loaded within the builder you still wouldn’t have full control over the output as EE injects the event details into the_contet() of espresso_events posts, you won’t be able to control that with a page builder. |
|
|
ok,… I knew it was a long shot 🙂 |
The support post ‘REST API base slug’ 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.