New answers tagged media
1
vote
Get all uploaded images using REST api
So the problem you are encountering is that you can not request all of them at once. Meaning you have to add a parameter to the request. Something like this:
/wp-json/wp/v2/media?per_page=100
If you ...
0
votes
Front end form with images and media_handle_upload logic?
if( isset( $_FILES['fileToUpload'] ) && ! empty( $_FILES['fileToUpload']['name'] ) ) {
require_once( ABSPATH . 'wp-admin/includes/image.php' );
require_once( ABSPATH . 'wp-admin/...
0
votes
Can you open a media frame to sellect an attachment to associate with another attachment you are editing on an existing media frame?
I figured this out. You CAN open another frame Here is my code:
jQuery(document).ready(function ($) {
var frame;
frame = wp.media();
$(document).on('click', '.compat-field-...
2
votes
Automatic image conversion to HEIF breaks Gallery on Safari
This is a known issue. A fix is set to be included in release 6.7.1:
Targeted Fixes
[…]
The following are bugs that should be included if ready, but as understood now are not affecting as many people ...
Top 50 recent answers are included
Related Tags
media × 1088uploads × 464
media-library × 227
images × 213
attachments × 99
plugins × 61
posts × 46
php × 41
post-thumbnails × 39
gallery × 38
media-modal × 36
customization × 35
library × 35
functions × 34
javascript × 33
plugin-development × 27
rest-api × 26
multisite × 25
filters × 23
thumbnails × 22
theme-development × 19
audio × 19
custom-post-types × 18
import × 18
jquery × 16