I want to show Featured Gallery metabox in my custom post type. I have it only in article page, and i want to add it to my custom post type. How i can do it ? I tried with this, but not work :

function gallery_metabox( $types ) {
    $types[] = 'projects';
    return $types;
add_filter( 'gallery_metabox_post_types', 'gallery_metabox' );
  • WordPress doesn’t have a gallery meta box. Are you using a plugin? You’ll need to ask it’s author. Aug 21 '18 at 13:56
  • Yes in post page I have the "Featured Gallery" where i can select multiple images to show in post. Aug 21 '18 at 14:07
  • 1
    This isn't something from WordPress itself. Either your theme or a plugin adds it. Since 3rd-party themes and plugins are off topic here you'll need to contact the author. Aug 21 '18 at 14:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.