Home › Forums › Support › Apply Sections to Custom Post Types? › Reply To: Apply Sections to Custom Post Types?
October 19, 2015 at 9:48 am
#145668
Tom
Lead Developer
Lead Developer
Hi Dan,
You should be able to do something like this:
add_filter( 'generate_sections_post_types','generate_add_section_post_types' );
function generate_add_section_post_types()
{
return array( 'page','post','yourposttype' );
}
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/