Viewing 1 replies (of 1 total)
  • Thread Starter Brandon Lavigne

    (@drrobotnik)

    I figured it out, it was an issue with my plugins folder not matching the folder in the enqeue_admin_scripts() function. I have network sites enabled, with each site having a separate plug-in folder. So, it was my fault. This plug-in is really great.

    Lines changed:

    public function enqueue_admin_scripts() {
    		$darray = explode('.', $_SERVER['SERVER_NAME']);
    $unisite = $darray[0];
    			wp_enqueue_script("featured-image-custom", plugins_url('/'. $unisite . '/' . basename(dirname(__FILE__)) .'/js/multi-post-thumbnails-admin.js'), array('jquery'));

    }

    Side note, is there anyway to set up the plug-in to attach a metabox each time the user adds an image. I want to set it up so the user can add as many images as they want.

    Functionality would go like this. User adds 2nd thumbnail image, 3rd thumbnail metabox appears, allowing them to add a third.

    I’m turning the featured image into transition slide on the top of each page.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Multiple Post Thumbnails] Image doesn't upload, jumps to top of the page.’ is closed to new replies.