Hi @cryscee, the code posted in the solved thread is as good as it gets. it’s the same solution I’d prescribe for you. make sure you copied the code correctly.
If the site “breaks”, are there any error messages that show up? and in your functions.php file, what’s the last 10 lines of code in the file before you pasted in the new code from the other thread? I assume you pasted in the new code at the end of the file.
Yes, I am posting the code at the bottom of the functions file. And no, no errors display. The site just brings up a blank white page. Then when I go in and remove what I added it loads correctly.
This is what I’m pasting:
add_filter(‘mab_allowed_post_types’, ‘add_cpt_to_mab’);
add_cpt_to_mab($posttypes){
$posttypes[] = ‘the_video’;
return $posttypes;
}
Thanks!
I guess you’re right, the original thread had something missing but the poster saw the error and didnt bother correcting me. Anyhow, here’s what it should look like
add_filter('mab_allowed_post_types', 'add_cpt_to_mab');
function add_cpt_to_mab($posttypes){
$posttypes[] = 'the_video';
return $posttypes;
}
Worked perfectly! Thanks.