Whats wrong with my wp gallery?
look at your javascript in the header for the thumb info: script> var thumbfile = “http://bricksandwindows.build12.com”; also repeated on line 179 when viewing source
look at your javascript in the header for the thumb info: script> var thumbfile = “http://bricksandwindows.build12.com”; also repeated on line 179 when viewing source
Ad 1) Take a look at wp_upload_dir. Ad 2) Try remove_theme_support( ‘post-thumbnails’ );
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
I can confirm this was fixed in WC 1.5.2 🙂
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
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
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
Deleting an image from the WordPress media library will remove the image from the website completely. It will no longer be available to any posts, pages or other content that referenced it.
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
Add define(‘IMPORT_DEBUG’, true); to your wp-config.php to display errors.