Viewing 1 replies (of 1 total)
  • Thread Starter mungle

    (@mungle)

    Solved… just replace this part of code:

    function ts_custom_css_hooks() {
    	add_meta_box('custom_css', 'Custom CSS', 'ts_custom_css_input', 'post', 'normal', 'high');
    	add_meta_box('custom_css', 'Custom CSS', 'ts_custom_css_input', 'page', 'normal', 'high');
    }

    with this one:

    function ts_custom_css_hooks() {
    	add_meta_box('custom_css', 'Custom CSS', 'ts_custom_css_input', 'post', 'normal', 'high');
    	add_meta_box('custom_css', 'Custom CSS', 'ts_custom_css_input', 'page', 'normal', 'high');
            add_meta_box('custom_css', 'Custom CSS', 'ts_custom_css_input', 'custom_post_type', 'normal', 'high');
    }

    where custom_post_type is the custom post type slug!

    You can also add more then one custom post type.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Post issue’ is closed to new replies.