Skip to content

How to use the class when using custom post types? #28

nicoladj77 opened this Issue Aug 24, 2012 · 1 comment

1 participant


Hi, i'm going to use your class with our plugin that handles events as a custom post type. Any advice on where i should start to look to adapt your class in such a way that it show the extra field only on the "Categories page" of the desired post type?
I use the "Event" custom post type so i would want an extra field only on the "Event categories" Page


Found out, really easy, it's a congi option

        $config = array(
            'id' => 'demo_meta_box',          // meta box id, unique per meta box
            'title' => 'Demo Meta Box',          // meta box title
            'pages' => array('events_categories'),        // taxonomy name, accept categories, post_tag and custom taxonomies
            'context' => 'normal',            // where the meta box appear: normal (default), advanced, side; optional
            'fields' => array(),            // list of meta fields (can be added by field arrays)
            // 'local_images' => false,          // Use local or hosted images (meta box images for add/remove)
            'use_with_theme' => false          //change path if used with theme set to true, false for a plugin or anything else for a custom path(default false).
@nicoladj77 nicoladj77 closed this Aug 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.