Reply To: Apply Sections to Custom Post Types?

Home Forums Support Apply Sections to Custom Post Types? Reply To: Apply Sections to Custom Post Types?

Home Forums Support Apply Sections to Custom Post Types? Reply To: Apply Sections to Custom Post Types?

#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/