• – WordPress 3.6.1
    – NextGEN 2.0.31

    Hello.
    I need some help, with automatically duplicate images that are added to post – to NextGen Gallery.
    I used plugin – “Multi Image Metabox” – this plugin adds metaboxes into my custom post types.
    The function to save this images –

    $list_images = list_my_images_slots();
        foreach($list_images as $k => $i){
    	    if ( isset( $_POST[$k] ) ) {
    			check_admin_referer('image-liee-save_'.$_POST['post_ID'], 'image-liee-nonce');
    			update_post_meta($post_ID, $i, esc_html($_POST[$k]));
    		}
    	}

    So the question is, what function I can automatically add these photos to the gallery of the same name as the category of this post?

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Duplicate images from the post to the gallery’ is closed to new replies.