• Resolved losbenos

    (@losbenos)


    I have a website that features custom post type is made with the CPT UI plug-in. I do not have the option to include food box on my custom post types.
    Is there a workaround for including the scripts and styles on custom post types?

Viewing 1 replies (of 1 total)
  • Plugin Author bradvin

    (@bradvin)

    hi @losbenos

    By default, the “Include FooBox” metabox will appear on all public post types. So you could edit the post type to be public in CPT UI.

    Alternatively, you can override the ‘foobox_metabox_post_types’ filter to add it:

    
    function override_foobox_metabox_post_types( $post_types ) {
      $post_types[] = 'cpt_slug';
      return $post_types;
    }
    add_filter( 'foobox_metabox_post_types', 'override_foobox_metabox_post_types' );
    

    BTW – I have not tested the above code works

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