• Resolved codimex

    (@codimex)


    Hi, Aurovrata.

    First of all, congratulations for your plugin, and thank you for your generosity to leave it at our disposal to make our websites grow bigger. I’m not an expert coder, but it seems your plugin follows the WordPress post-mapping good practices and standards, which feels very reliable to me.

    I’m using the Drag and Drop Multiple File Upload plugin, and, after setting it to allow one image file only, I’d like to map it to the featured image. As I read in your plugin description, I’m aware that “the Featured image/Thumbnail will only accept form fields of type file”.

    However, I’ve read these two threads (one, two), and I wonder if, still, it is achievable, but I’m afraid I don’t have enough coding skills to achieve that on my own.

    Is there any chance that you help me either with one of these two solutions I’m considering? (I’m open to different ones):

    a) Either with a code I can copy-paste to my functions.php file.
    b) Or (maybe?) “disguising” the regular field as a drag and drop field? In the first thread I link above, the thread starter said he “did it with the normal file upload and styled that one”.

    Thank you for your attention, and have a nice week!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    First of all, congratulations for your plugin, and thank you for your generosity to leave it at our disposal to make our websites grow bigger.

    thank you for the kind words. The pleasure is all mine.

    read in your plugin description, I’m aware that “the Featured image/Thumbnail will only accept form fields of type file”.

    or a filter that will hook a custom function in your functions.php file, where you need to get the file submitted by your drag & drop field, save it as a media attachment post and return the attachment post ID which will then be associate as the featured image.

    This not simple coding, so if you’re not well versed in WordPress I would recommend you hire someone (like me ?? to do this for you.

    s there any chance that you help me either with one of these two solutions I’m considering?

    I don’t do specific support. I give only guidance, bug fixes and plugin improvements. Else the work is simply never ending and have no more time to put food on my table.

    Thread Starter codimex

    (@codimex)

    or a filter that will hook a custom function in your functions.php file, where you need to get the file submitted by your drag & drop field, save it as a media attachment post and return the attachment post ID which will then be associate as the featured image.

    Thank you so much, @aurovrata, for your guidance. I’ll try to figure it out by myself, playing with hooks and filters (I’m no good at php, but I know that mastering php is the turning point when it comes to empower WordPress).

    Marking as resolved. Best of lucks!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mapping drag & drop image to featured image’ is closed to new replies.