How is it possible, to display my add_meta_box (in the WYSIWYG Editor – create new post page) only when the post is related to a specific category for example cat no. 5.
BR & Thanks,
mybecks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The easiest way I’ve seen is using jQuery to hide or display meta boxes depending on category using this technique here on Stackexchange;
https://wordpress.stackexchange.com/questions/14707/post-formats-how-to-switch-meta-boxes-when-changing-format
I dropped the Heredoc syntax but this solution works really well.