Viewing 2 replies - 1 through 2 (of 2 total)
  • Sean

    (@seanhawkridge)

    You’ve probably figured this out by now, but you can include any post type by including it in scope:

    slt_cf_register_box( array(
        'type'      => 'post',
        'title'     => 'Featured Project',
        'id'        => 'featured_project',
        'context'   => 'normal',
        'priority'  => 'high',
        'fields'    => array(
              array(
                  'name'          => 'featured_title',
                  'label'         => 'Title',
                  'type'          => 'text',
                  'scope'         => array( 'page', 'post', 'my_custom_post_type'),
                  'capabilities'  => array( 'edit_posts' )
              )
    )
          ));

    The full spec for scope is in the docs

    Plugin Author Steve Taylor

    (@gyrus)

    @sean, thanks for chipping in. @bjones1985, for some reason I got a notification for Sean’s reply but not your post. Hope you got things working for you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Any way to include the boxes on pages also?’ is closed to new replies.