Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
nicoladj77 opened this Issue · 1 comment

1 participant

@nicoladj77

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

@nicoladj77

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
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.