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-add_attachment input’, function (e) { get_attachment(frame); }); }); function get_attachment(frame) { // Create the media frame. frame = wp.media.frames.meta_image_frame = wp.media({ // Tell the modal to show only images. library: { type: ‘image’ … Read more

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 or are less problematic: […] Using the Upload button in image-based blocks in Safari unexpectedly converts images … Read more

Uploading media from non-local host computer

It’s not an issue with accessing it from another computer: when you think about it all web servers are another computer. The user PHP runs as on the computer hosting the site needs to have write permission to the directory that WordPress is in (and all subdirectories). Exactly how to achieve that depends on a … Read more

Featured Image add tab

WordPress does not have a built-in hook or function on the PHP side that allows you to directly add a new tab to the Media Library Modal window. To achieve this, you need to use JavaScript to modify the media uploader interface. You can add a custom tab to the WordPress Media Library modal by … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)