• Resolved drazon

    (@drazon)


    Hi is it possible to do something like this for the oceanwp-gallery-metabox ?

    /**
     * Add the OceanWP Settings metabox in your CPT
     */
    function oceanwp_metabox( $types ) {
    
    	// Your custom post type
    	$types[] = 'your-post-type';
    
    	// Return
    	return $types;
    
    }
    add_filter( 'ocean_main_metaboxes_post_types', 'oceanwp_metabox', 20 );
Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author oceanwp

    (@oceanwp)

    Hello, it is totally possible, yes, use this code:

    function prefix_gallery_metabox( $types ) {
    	$types[] = 'ocean_portfolio';
    	return $types;
    }
    add_filter( 'ocean_gallery_metabox_post_types', 'prefix_gallery_metabox' );

    But you will probably need to add custom code for your CPT to disaply the images in front end.

    Thread Starter drazon

    (@drazon)

    Thanks! I was searching for the hook in the theme but it is in the ocean extra plugin.

    Theme Author oceanwp

    (@oceanwp)

    You’re welcome ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Image Gallery Metabox at Custom Post Type’ is closed to new replies.