How to bulk Edit Dates in Media Library?

You can use a plugin called Media Library Assistant. After you install it go to your Media > Assitant (wp-admin/upload.php?page=mla-menu). Select all the images or the ones you want to edit. Click on Bulk Actions. Click on Edit and then Apply. Then you will see Uploaded on and use the date you wish.

3.5 Media Manager – callout in metaboxes

you can move the wp.media stuff to an external function which accepts the element as a parameter and call it on the click event like this: jQuery(document).ready(function($){ $(‘.media-upload-button’).click(function(e) { e.preventDefault(); upload_image($(this)); return false; }); }); function upload_image(el){ var $ = jQuery; var custom_uploader; var button = $(el); var id = button.attr(‘id’).replace(‘_button’, ”); if (custom_uploader) { … Read more

How to limit characters of the post title?

You could do this : add_action(‘publish_post’, ‘wpse_107434_title_max_char’); function wpse_107434_title_max_char() { global $post; $title = $post->post_title; if (strlen($title) >= 100 ) wp_die( “the title must be 100 characters at most” ); } You can replace strlen() with str_word_count() if you want to set a word limit instead. EDIT: ok with new details you added it seems … Read more

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.

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