Support

Home Forums Event Espresso Premium EE Custom Post Type not showing in Posts Block

EE Custom Post Type not showing in Posts Block

Posted: July 20, 2021 at 9:43 am


SignpostMusic

July 20, 2021 at 9:43 am

I’m using Kadence Blocks (and have tested with other plugins) and the Event Espresso post type does not show in the list of post types in the block select menu. Other custom post types are showing in the list. Is there a way to have get the EE post type to display in the list of other post types?


Tony

  • Support Staff

July 22, 2021 at 5:03 am

Hi there,

The Event Espresso post types have show_in_rest set to false by default as we have our own REST endpoints. So for the post types to show u, that argument will need to be set to true which you can do with a snippet like this:

https://gist.github.com/Pebblo/ece375ff854819cf900f91435ee67c76


SignpostMusic

July 22, 2021 at 7:17 am

Perfect. Thanks!


Tony

  • Support Staff

July 22, 2021 at 7:27 am

You’re most welcome.

Any further questions just let us know.

The support post ‘EE Custom Post Type not showing in Posts Block’ 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