I have created a taxonomy using MB Custom Post Type, however, when I paste the code into functions.php, it gives the following error in place of the taxonomy meta-box:
Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home/.../wp-admin/includes/template.php on line 1050
Do you use latest version of MB Custom Post Type? There is something wrong here. It's should be add_action( 'init', 'your_prefix_register_taxonomy', 0 ); instead of add_action( 'init', 'your_prefix_register_taxonomy');
I used the code you give but I didn't see any errors.
Hi, I've tried this with the corrected code and still the error remains the same. Just to be clear, the taxonomy works fine as long as I am using it 'dynamically' through MB Custom Post Type. As soon as I copy the code to php and disable the plugin, the error starts appearing.
Which version of MB Custom Post Type are you using? I tried your scenario but it works. Can you share your credential for us to check it? If you can, please send the WordPress admin credential to [email protected]
Thank you very much.
UPDATE: Sorry. I got the problem. Please wait for me to fix it.