Tagged: advanced layout builder, custom post types
I’m using the Custom Post Type UI plugin. I have created multiple custom post types and taxonomies. I found the piece of code from the documentation that allows the Advanced Layout Builder to work with custom post types. However, it only works with one post type entered. I tried comma separated slugs, but that didn’t work. What else should I try?
Thanks!
I figured out the correct solution. Instead of a comma separated list, I used this format:
$meta['page'][] = 'custom_post_type_1'; /
$meta['page'][] = 'custom_post_type_2'; /
$meta['page'][] = 'custom_post_type_3'; /
It’s working now.