New answers tagged

1 vote

Front end form with images and media_handle_upload logic?

Getting your form to upload an image as soon as it is selected rather that submitted is pretty straightforward, as you can submit the form whenever a field changes like this: <form action="...
cjbj's user avatar
  • 14.5k
0 votes

'Add Media' to post - filter images

Well I have figured out the answer to my question. As mentioned in the comments, I'm making an ajax call to get the list of entries for the custom 'select' dropdown. In the ajax function, I'm ...
patrick_here's user avatar
0 votes

Front end form with images and media_handle_upload logic?

try below the code front end form with media handle upload in Wordpress. <form id="post-submission-form" method="post" enctype="multipart/form-data"> <input ...
vijay pancholi's user avatar
0 votes

How to trigger a refresh in the media modal

This works in the latest version of WordPress which is now 6.5: wp.media.frame.content.get().collection._requery(true); wp.media.frame.content.get().options.selection.reset();
Andrei's user avatar
  • 1
0 votes

Switch between tabs on "Insert Media" dialog

This could help, I can confirm it works in WordPress 6.5: wp.media.frame.content.get().collection._requery(true); wp.media.frame.content.get().options.selection.reset();
Andrei's user avatar
  • 1
0 votes

How can I get the Media Library backend to show larger thumbnails?

Depending on the complexity of the change you need to make, you could do what I did. For some reason, WP was using the largest possible image size as the preview thumbnail in the Media Library. As ...
donohoe's user avatar
  • 161

Top 50 recent answers are included