wp.media edit attachment screen

Long answer: Peeking into wp-includes/js/media-models.js, I see this: if ( ‘select’ === attributes.frame && MediaFrame.Select ) { frame = new MediaFrame.Select( attributes ); } else if ( ‘post’ === attributes.frame && MediaFrame.Post ) { frame = new MediaFrame.Post( attributes ); } else if ( ‘manage’ === attributes.frame && MediaFrame.Manage ) { frame = new MediaFrame.Manage( … Read more

How to insert an Audio Player in a Post or Page?

Plugin option When searching for a plugin, it is important to check: Compatible up to, supports current WordPress version? Last updated, too long ago? Support, too many bug reports? Level of support in the forum or in the official plugin page. Compatibility, if the plugin hasn’t been updated for a while or is not compatible … Read more

Generated media have incorrect aspect ratio

Under settings >> media, change the height attributes to 9999, and untick Crop thumbnail to exact dimensions (normally thumbnails are proportional) under the thumbnail size if it is ticked. When you are done, download and install “Force Regenerate Thumbnails”. This is actually better than “Regenerate Thumbnails” as it deletes all redundant image sizes.

Organizing media uploads

First, I assume the problem isn’t as much 1M files, but your server unable to handle it? Logically it worked elsewhere, right? My opinion is that presenting is as a “problem” to the client might be a little one sided. It’s in realm of technical possibility, but it won’t be a smooth process. WP stores … Read more

Disable mouse image resizing in editor

I use a lot of CSS to manipulate things in the WP UI. I have this in a plugin – should work as expected. If you are already hooked into the admin CSS then bypass the filter. PHP add_filter (‘admin_enqueue_scripts’, array(&$this, ‘load_custom_wp_admin_style’ )); function load_custom_wp_admin_style() { echo ‘<style type=”text/css” rel=”stylesheet-default-admin”> @import url(‘.WPMSGC_URL.’/assets/css/default-admin.css);’ . $this->options[‘default_admin_css’] . … Read more