Skip Navigation

[Resolved] Divi's "Projects" custom post

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, 10 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.

Tagged: 

This topic contains 2 replies, has 1 voice.

Last updated by alanS3341 6 years, 10 months ago.

Author
Posts
#623989
projects.JPG

Tell us what you are trying to do?
Create a custom post type of "Projects" however I am using Divi theme

Is there any documentation that you are following?
No because that is not the issue

I am using Divi which has it's own "projects" post type but I need to use "projects" in Toolset Types. Any idea how to get around this? I can't call the Types option anything else because it's used in an existing site which has a post type of "Projects" which I need to have for S.E.O. and other purposes, so I need to know how to rename or remove the Divi "projects" version...

#624003
projects2.JPG

I have used this code here: hidden link

and changed everything to "portfolio"

I save it in my child theme functions.php and there are no errors.

Yet when I try to create a "Projects" custom post type I get the same error (see attached image).

#624009

It took a long time for me to find the right option as renaming the Divi "Project" CPT never seemed to work with any option I found.

I found this article:

hidden link

And used this option "remove" as the "renaming" option still did not work.

//* Remove the Custom Post Types from the Divi Theme */
if ( ! function_exists( 'et_pb_register_posttypes' ) ) :
function et_pb_register_posttypes() {
global $wp_post_types;
if ( isset( $wp_post_types[ $post_type ] ) ) {
unset( $wp_post_types[ $post_type ] );
return true;
}
return false;
}
endif;

It would be nice (as Toolset is promoting the use of Divi theme) if the devs could come up with a way of doing this in Toolset settings. It's a small thing for Divi to do the same in their theme settings, however I won't hold my breath on them doing anything about it...

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