Tagged: Custom Post Type, Layout Builder
Hey,
I found https://kriesi.at/support/topic/second-custom-post-type-with-advanced-layout-builder/
but there is no answer about question mentioned. I want also add layout builder to another CPT, but I couldn’t find any correct answer. I used functions.php to add one of my CPT few months ago, but now I have to use another and there is a problem.
Is any solution for that?
BR
Jacek
Hey Jacek!
Do this, https://kriesi.at/support/topic/overriding-functions-in-a-child-theme/#post-167093.
To add more than one then just double up on this line.
$boxes[$key]['page'][] = 'mycpt';
$boxes[$key]['page'][] = 'mycpt2';
Regards,
Elliott
Hey Elliott,
it works perfectly. Thank You!!
Best Regards,
Jacek