Order of Uploaded Multiple Images
-
Hi,
MLP is a really awesome plugin that works perfectly on my server. Now, I have a question concerned with the order of uploaded images.
I’m using xmlrpc to publish my posts with featured images. It requires the ID of image attachment rather than its file name or image url. As I test on my website, when I upload multiple images simultaneously, images which finish uploading first get smaller id, it doesn’t follow the order as how I select and upload them.
For example, I publish 3 posts, which require feature images A.jpg, B.jpg, C,jpg, respectively. I was supposed to get id=1 for A.jpg, id=2 for B.jpg and id=3 for C.jpg, so I can set the attachment id to the corresponding post programmatically. But usually the id is not ordered as I expect it to be.
So I was wondering if there is any chance to keep the order how I upload them. One possible way might be to restrict one upload in progress at a time even if I drag multiple images to upload. Anything I can do with the MLP, or do I have to modify the core of WordPress?
- The topic ‘Order of Uploaded Multiple Images’ is closed to new replies.