Skip Navigation

[Resolved] Create custom post type by code

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)


This topic contains 2 replies, has 2 voices.

Last updated by Christian Cox 6 years, 2 months ago.

Assisted by: Christian Cox.


Hi there,

I'd like to do something like this but only by code, i.e. I want to create a custom post type that is "Toolset-ready" by code.

More practical, I would like to replace this code: `register_post_type(self::POSTTYPE, self::POSTTYPE_ARGS)` by something like this `wp_types_register_post_type(self::POSTTYPE, self::POSTTYPE_ARGS)´

In the end I would expect this post type to behave just like one created by the Toolset GUI.

Is there any API for that?

Best regards


Hi, I'm not aware of a public API for registering post types the Toolset way, but I will reach out to my 2nd tier support team to see if there is any alternative to the GUI.


It turns out there is not a public API for creating custom post types in code. For now, the best approach is to create new post types using the GUI.

The forum ‘Types Community Support’ is closed to new topics and replies.

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.