The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
288 views

Fallback image size when using wp_get_attachment_image_src / full size compressed image

I am using ACF to pull images using ‘wp_get_attachment_image_src’ as such: <?php $image = wp_get_attachment_image_src(get_field('image'), 'large'); ?> <img src="<?php echo $image[0]; ...
1
vote
1answer
245 views

Wordpress Media Library showing wrong preview size?

When uploading new (or existing) images to the media library in Wordpress 3.6.1 the preview generated on the admin page/edit media page (eg. wp-admin/post.php?post=8736&action=edit ) is showing ...
1
vote
1answer
56 views

Adding custom image sizes and post types to a plugin or to a theme?

I'm just getting started but want to play around in the right area practicing for a new personal site/theme. Part A: I want to add featured images (and a few new image sizes) to a blog portion of a ...
1
vote
1answer
61 views

Difficulties setting a maximum image width

Currently I have this written in my functions.php: if ( ! isset( $content_width ) ) $content_width = 560; If I understand correct, this should re-size a relatively large image (1024x1024px) to an ...
0
votes
1answer
20 views

add class to background image

I'm trying to make a wordpress theme, using as framework the twitter bootstrap. On one page template I need to use the featured image as a background image, so I used this code: <?php global ...
0
votes
1answer
25 views

Automatically generate missing images

I'd like to auto-generate images, or rather image sizes, in old posts where the size is currently missing. Specifically I'm hoping to generate sizes on the fly when a specific (old) image size is ...
0
votes
1answer
40 views

How to Delete All regenerated thumbnails but keep the original ones?

I have a WordPress site which used to weight around 350 MBytes. Then I changed the theme and found that I have to regenerate the thumbnails. So I did it, Twice actually, but Now the problem is that ...
0
votes
1answer
53 views

How can I set different banner images using background cover at different breakpoints?

I use the following code to see if a featured image exists and set my banner image like so: <?php if ( has_post_thumbnail() ) : $src = wp_get_attachment_image_src( ...
0
votes
1answer
55 views

How to replace all images in all posts and pages with a different size?

I'm about to reboot an old blog of mine and therefor I'm creating a new theme from scratch. Before I'd align pictures left and right, because it seemed good. But now I want to make it much cleaner and ...
0
votes
1answer
20 views

Function the_content

For some reason on my attachment page template (http://capa.furniture/?attachment_id=1494) I am getting the url of the reduced size image. I do not know why. I am not getting the thumbnail full size ...
0
votes
1answer
108 views

Add Image Size for one Media Category Only

add_image_size is great, but if I want to create a swatch size for colors/patterns on my site, I don't need the swatch size for all of my other images. Is there any way to apply image size by media ...
0
votes
1answer
13 views

Specify which image sizes are created on a per image basis

I have a custom post type that requires different image sizes than other posts. Right now the images are added via wp_insert_attachment, a thumbnail set via set_post_thumbnail, and images are resized ...
0
votes
1answer
55 views

Changing image size displayed in wordpress twenty fourteen theme

I am using twenty fourteen theme with with the extender plugin. I increase the content width from the extender plugin to something around 532 px. It worked fine. But the posts containing images (even ...
0
votes
1answer
120 views

Make all images displayed in single.php a certain size

I’m working on a fashion blog with a lot of images. I’ve imported all posts from Blogger to WordPress and it seems to have left me with images which have a size added on to the end of their src: ...
0
votes
1answer
548 views

Change attachment inside the_content using filters

I am in search of a snippet or function that will filter the embedded images inside a post to a custom size I have defined in functions.php. Here is the scenario: A client uploads and add any ...
0
votes
1answer
33 views

Remove the height limit on wordpress 3.4.2

I have problems when insert images on my pages. I have a image of 1113 × 731 and I upload it to my wordpress, when I go to Add Object popup, the Full size of the image mode is of: 950 x 342. When I ...
1
vote
0answers
68 views

How to make own crop image function for WordPress plugin

I am working on a plugin, in plugin i create an upload meta fields for images to upload one or more images. Its working perfectly and in plugin settings i gave options to users that they set images ...
1
vote
0answers
145 views

Crop image to horizontal or vertical by code based on image size

my client asked me to create gallery(WP gallery) based on this site. the problem here is that i need to crop images based on image size before inserting the image in the Media library. now i using ...
1
vote
0answers
165 views

Can't generate thumbnail images

Having a very strange problem with this site I recently took over hosted on RackSpace. Seems whenever i upload a new image, it doesn't generate different sizes and I'm trying to get it where it will ...
1
vote
0answers
451 views

Clean up images, delete unused image sizes attached to a post type

I found this post: How do I delete all generated images from my server except those currently used in posts which describes how to delete all image sizes but the original uploaded image file. I need ...
1
vote
0answers
46 views

Scaling an image in a WordPress post

I am currently building a WordPress theme and when I add an image using the add media button, I'm able to choose a scaling percentage to allow the image to get bigger or smaller within the modal pop ...
1
vote
0answers
306 views

“Medium” size image displayed instead of “thumbnail” in only one post, other posts are fine

Please take a look at this cicada photo - http://photo.aseev.com/stock-photo/cicada-exuviae/ - below you will see 5 thumbnails, all of them are squared, except one (a bug on white background). It is ...
1
vote
0answers
36 views

How do you alter the default WordPress thumbnail?

I have selected 'thumbnail' under 'Apply changes to:', however, nothing seems to happen in either the media library or on the site. I've also tried regenerating the images after making changes, but ...
0
votes
0answers
12 views

resize from small images to large

I want to create large images though my original image is smaller. I have original images 1024x768 in my media library, and i want to resize these images to 1920x1080px in my WordPress posts. I ...
0
votes
0answers
12 views

Need advice for uploading images and generating sizes

I would like some advice on creating a image upload system(this maybe a plugin or a script on a page, it doesn't matter). I have a image site were each image is an post. I want to be able to upload ...
0
votes
0answers
19 views

Essential Grid- ignoring Set Image Source Type

I am setting this value for the 'Set Image Source Type' And I have this in my functions: add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 370, 277 ); add_image_size( 'mnd-size', ...
0
votes
0answers
8 views

Compress full-size image into a separate custom size

I need to have a custom image size (or else) with the same resolution as the original uploaded image, with a jpeg quality of 60. The reason behind this is because the images must be shown sometimes in ...
0
votes
0answers
48 views

wp_get_attachment_image_src() regenerate custom size images everytime

i try to make simple gallery from post's attachment images with custom sizes. i wrote simple loop: $original = array(); $gallery = array(); $gallery_min = array(); $imgs_args = array( ...
0
votes
0answers
11 views

Custom Image Sizing in Content Editor Uses Small Image

I'm trying to use the custom image size option in the Add Media part of the Content Editor, and when I do, it uses the Medium image as the base for the resizing, which results in blurry images if the ...
0
votes
0answers
37 views

Image jumping/resizing on pageload

Trying to firebug exactly what is causing the image on this iosslider image to appear to jump left/reduce size on pageload. Been messing with the CSS but can't seem to pinpoint it and would appreciate ...
0
votes
0answers
48 views

Minimum Image Dimension not apply to every image

I found a way on this site to restrict authors from uploading images if they are smaller then specific dimensions. This worked perfectly for me, till I reached the next problem; I need a workaround ...
0
votes
0answers
41 views

Different sizes for featured image for social networks

I'm using Twentythirteen on my blog, and the article has a featured image of 406x270 pixels. Since the social networks uses bigeer images when sharing, the image of my article gets blurred and not ...
0
votes
0answers
231 views

Set image dimension for WP_Customize_Image_Control images

In the customize page for the current theme the Current Header's Choose Image dialog shows - a "select and crop" option But the custom WP_Customize_Image_Control shows only "Choose Image". Is ...
0
votes
0answers
54 views

Show custom image size smaller in editor

I have a custom image size which editors should be able to use in their posts. I already managed for the custom size to show up in the add image dialogue, so that part is fine. On the destop version ...
0
votes
0answers
90 views

Add custom image size to shortcode

I am using WP-Views by WP-Types, to list WooCommerce category images in a page. WP-Views doesnt support category images by default, so i found this code to make category images available by shortcode. ...
0
votes
0answers
24 views

Blogger to wordpress, images downsized

I just migrated my photo blog from blogger to WordPress using import tool. The issue is that all images in all my posts have been downgraded i.e. the image name contains the small dimensions like ...
0
votes
0answers
189 views

Scale image down or resize image to fit on featured image thumbnail

I'm having a problem with the image scale. it doesn't fit meaning it crops to fit the container. how do you set it to resize it proportional with the container? if someone can help, please do. still ...
0
votes
0answers
361 views

Google Page Speed Insights - Optimize Images

The top recommendation from Google Page Speed Insights is to optimize & compress images. How do I do that? It lists dozens of images and that would be practically impossible to do it all manually. ...
0
votes
0answers
160 views

Gallery random image sizes

I'm trying to get a masonry layout to work with the standard [gallery] shortcode. This is the code I have in my post-gallery (for the gallery post-format). echo '<div class="zephyr-gallery">'; ...
0
votes
0answers
188 views

How to make an image bigger with wp_get_image_editor

I'm trying to programmatically increase the size of images that are uploaded. I want to double the size of each image. The code I've written so far is: $pathDirectory = dirname( $imagePath ); ...
0
votes
0answers
68 views

get the post thumbnail returns the full size

The function get_the_post_thumbnail($post->ID, 'thumbnail'); not always returns the thumb size of the image (which is 100x100) for some posts it does but for most of them it doesn't. Even though ...
0
votes
0answers
441 views

wp_get_attachment_image_src

When I use wp_get_attachment_image_src(), the medium sized image is returned on 3 out of 6 of my images. The other 3, the full size image is returned. I've checked and the medium sized image exists ...
0
votes
0answers
633 views

I am trying to get metabox image with custom size

I am trying to get meta box image with custom image size. i used this code to get image but image is not displaying. <?php $img_src = get_post_meta( $post->ID, 'project_options', true ); ...
0
votes
0answers
50 views

How to force attachment size for every post

I created a custom size like this : add_image_size( 'my-size', 615, 9999 ); Is there anyway i can force the ATTACHMENT DISPLAY SETTINGS SIZE to be always ('my-size') for every attachment?
0
votes
0answers
3k views

Get gallery and product gallery images full size

I'm trying to get all gallery images in a while loop of posts (for example a blog page). With the code I'm using right now, I only get the small thumbnail images (150px : 150px). Also I want to get ...
0
votes
0answers
55 views

How to set a Maximum Image size to a Field in WordPress

I have a customized frontend form in WordPress that allows to set a featured image to a post before publishing it. I want to set a maximum-allowed "width" as well as a "height" to the "upload image" ...
0
votes
0answers
43 views

different image size in home

I have the home page in two columns and images of 312×100. The problem is that, when you go the category page, you see the list of posts but the images appear with sizes like the home, with 312×100. ...
0
votes
0answers
107 views

Full sized images in RSS Feed

On my WordPress site all my images from all posts are using a width of 630px (with a full width of 1280px). For obvious reasons on my site I only display the 630px version and the user can click on it ...
0
votes
0answers
258 views

Full size image option removing problem

I have removed the Full size image option from the media upload window see Code: function theme_t_wp_set_image_size_options( $sizes ){ $sizes = array( 'thumbnail' => 'Thumbnail', ...
0
votes
0answers
44 views

wp_get_attachment_image_src match smallest edge

I'm trying to get the minimum image source that fills the given size. wp_get_attachment_image_src(get_post_thumbnail_id(), array(180, 180)) gets the image which fits the size and not which fills it. ...