formatting horizontal and vertical images in Settings?

I would not alter the core intermediate image sizes. If you have custom image sizes, register them using add_image_size(). e.g. function mytheme_add_custom_image_sizes() { // Add “vertical” image add_image_size( ‘vertical-a’, 95, 117, true ); add_image_size( ‘vertical-b’, 130, 160, true ); // Add “horizontal” image add_image_size( ‘horizontal-a’, 440, 304, true ); add_image_size( ‘horizontal-b’, 220, 152, true ); … Read more

Attaching images to multiple galleries

If you open wp-includes/media.php file you will see such code in gallery_shortcode function: … if ( !empty($include) ) { $include = preg_replace( ‘/[^0-9,]+/’, ”, $include ); $_attachments = get_posts( array(‘include’ => $include, ‘post_status’ => ‘inherit’, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => $order, ‘orderby’ => $orderby) ); … } … It means that you … Read more

Stylesheet being loaded outside of

The two stylesheets is only loaded when a video or sound was included in a post or page and that happens after wp_head. But do not despair! There is a filter you can use! in the code it looks like this: apply_filters( ‘style_loader_tag’, “<link rel=”$rel” id=’$handle-css’ $title href=”https://wordpress.stackexchange.com/questions/115412/$href” type=”text/css” media=”$media” />\n”, $handle ); so i … Read more

Adding .mov files (not from YouTube) [duplicate]

You can use upload_mimes filter and add mime for .mov files (video/quicktime). add_filter( ‘upload_mimes’, ‘customizeMimeTypes’, 10, 1 ); function customizeMimeTypes( $mimeTypes) { $mimeTypes[‘mov’] = ‘video/quicktime’; return $mimeTypes; } If you want to embed video with media library you can use wp_video_extensions filter. add_filter( ‘wp_video_extensions’, ‘addMovToWPVideo’); function addMovToWPVideo( $extensions ) { $extensions [] = ‘mov’; return … Read more

Admin edit S3 Media file?

1) Use persistent storage that can be shared among all EC2 instances within a region – Amazon Elastic File System OR 2) Give developers access to the AWS console or AWS Command Line Interface to access S3 resources. In addition use AWS Identity and Access Management to limit access; whether it is read-only or read/write. … Read more