WordPress.org

Ready to get started?Download WordPress

Forums

Multi Image Metabox
Images do not work with my costum content types (2 posts)

  1. jeffreytsl
    Member
    Posted 1 year ago #

    Hi,

    I am trying out the plugin and can use it on pages. So that is going well. Now I would like it to work with my custom content types. I cannot see it there yet. What am I doing wrong?

    Please help.

    Thanks, Jeffrey

    http://wordpress.org/extend/plugins/multi-image-metabox/

  2. Willy Bahuaud
    Member
    Plugin Author

    Posted 1 year ago #

    Hi!

    To use Multi Image Metabox with your own post types, you just have to past this into your functions.php theme file :

    add_filter('images_cpt','my_image_cpt');
    function my_image_cpt(){
       $cpts = array('page','my_custom_post_type');
       return $cpts;
    }

    :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic