Images are used in different ways by WordPress.You can use a theme with images in layout, place images within your post/page content, display images next to visitor's name called avatars etc

learn more… | top users | synonyms (3)

0
votes
1answer
3 views

Why is wp_get_attachment_image repeating added attributes?

In my single.php file I am calling for the image with: $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $...
2
votes
3answers
6k views

Find the post an attachment is attached to

I have a list of attachment IDs which are built using this array: $all_images = get_posts( array( 'post_type' => 'attachment', 'numberposts' => -1, ) ); Is it possible to take the image ID ...
0
votes
0answers
6 views

Woocommerce Product Image Mass import

I have over 1,000 registered products in Wordpress with Woocommerce, however, none of the products has images. Need to be assigned the images to these products, is there any extension that import ...
0
votes
0answers
16 views

Newly Uploaded Images Don't Scale Properly in Featured Images

It took me a bit to figure out what was going on, but here it is.... When I create a new post, and add a featured image to it, the image doesn't scale properly, like they used to. On the home page, ...
-2
votes
0answers
18 views

How to create a 'colour simulator' image gallery [on hold]

I want to create a 'colour simulator' for a client's website, to show how a product might look in different colours. Something similar to this: http://www.designinferno.com.au/colour_simulator.php ...
0
votes
2answers
618 views

Removing height and width from images with a caption

I am using WordPress with Twitter Bootstrap 3 and have an issue when it comes to images with captions. Images with captions are given a height and width attribute which stops them from being ...
1
vote
0answers
34 views

Modify 'Sizes' Attribute for Images with Specific Class

I'm ultimately trying to add useful responsive image srcset & sizes attributes to images added in a standard Text Widget. I've found this filter which does allow images to get the default WP ...
0
votes
2answers
737 views

Wordpress Theory Lesson - Image Columns within posts with alignment?

Trying to get my head round a request from a client, and thought I'd try to hivemind the solution a little bit. The client requires a two column post layout, with images down the right and text on ...
10
votes
9answers
9k views

How to automatically add rounded corners to thumbnails?

I want to created automatically rounded corner thumbnails for a particular project I'm working on, using something like this: http://webdeveloperplus.com/php/create-thumbnail-images-with-rounded-...
0
votes
1answer
389 views

Thumbnail Image Rounded Corners w CSS (or any other good method)

I've been researching how to display thumbnails with rounded images, but every solution ends up running out of gas. One trick I tried was wrapping the thumbnail in a division with the same size and ...
0
votes
1answer
17 views

No compression occurs on my jpegs after adding jpeg_quality hook to my functions.php file

I'm attempting to perform some basic jpeg compression by using the jpeg_quality hook inside my functions.php file but there is no compression/resizing taking place. I'm only measuring file compression ...
0
votes
2answers
422 views

Use Exact Image Size using add_image_size

I have a pretty basic question. It may be very noob question, but it is bothering me a lot. In my theme I've added a custom image size like this: function img_update() { if ( function_exists( '...
0
votes
0answers
11 views

Elegant way to get image of a certain size from and ACF image array

I'm using WordPress to generate the various sized images on the server. I use Advanced Custom Fields to create the unique fields. I'm currently generating the standard 'thumbnail', 'medium', and '...
0
votes
1answer
511 views

How to get all inline images in post content?

I want to get all inline images in the post content. The get_children() method doesn't work for me because they could add the same photo twice. Also this only gets "attached" images, and they could ...
0
votes
1answer
527 views

getting attachement images src and add classes

I have posts whose each contains 4 attached images. what i'm trying to do in my single.php is to get all the 4 images src to be abble to add different classes to each images. <img class="image_1 ...
0
votes
0answers
68 views

Filter the_content() to add custom figure tags

I'm trying to implement responsive images on my site, and have all the required component parts working, and understand the concepts, but need some help putting them together; Knowing that WordPress ...
0
votes
0answers
12 views

Import images trouble from .XML ( WP ALL IMPORT ) [on hold]

I have trouble importing image with WPALLIMPORT. I have watched WPALLImport tutorial and it didn't help. 1) I drag and drop <Photos> into images section " Download images hosted elsewhere " ...
0
votes
1answer
44 views

How to create a thumbnail with php?

I am creating posts using wp_insert_post(), but these posts do not have featured images. I have a post ID, and a path to the image on my server, how do I set them as the featured image? EDIT : I ...
6
votes
3answers
11k views

Get first image in a post

I am using this code directly from the codex. function echo_first_image ($postID) { $args = array( 'numberposts' => 1, 'order'=> 'ASC', 'post_mime_type' =>...
1
vote
1answer
938 views

How to get cropped thumbnail source for custom post type

I need thumbnail image url with size 148*148px. I using custom post type for testimonials. I need just the image source like http://example.com/demoimage.jpg. It is possible to get cropped image ...
0
votes
0answers
20 views

Retrieve a Page's Gallery's Images, With Custom Thumbnail Size and Links to Full Image

Using the following function: get_post_gallery( get_the_ID(), false ) Example: <?php /* The loop */ while ( have_posts() ) : the_post(); if ( get_post_gallery() ) : ...
0
votes
0answers
17 views

Making Image Gallery the Width of the Page

I've been trying to find out ways to make the image gallery on my website's front page as wide as the very page itself. As in, I'd like it to stretch from the entire left side to the right side. The ...
0
votes
0answers
18 views

Woocommerce Product Pages, Hooks, changing page layout

I'm trying to rearrange the layout of the product listing below. I'd like the short description to appear next to the product image, rather than below it. Now I know I need to change the hooks in the ...
0
votes
2answers
45 views

Disable resizing of gif when uploaded

Animated gifs are getting more popular on the web (again) and currently there is no good tool for resizing animated gifs. So I want to disable resizing/generation of image sizes for the gif mimetype ...
0
votes
1answer
42 views

Convert canvas to image and upload image to server

I'm working on a wordpress site about blackout poetry for a university project, where the user can blacken parts of a text to create a poem. After the user has created his poem, we need to give him ...
-2
votes
0answers
36 views

Remove fields from the Insert/edit image pop-up?

Is it possible to remove the fields from the Insert/edit image pop-up from the visual editor. I want to remove it as I'm using it on front end.
0
votes
0answers
42 views

WP 4.4+ Responsive Image Markup in Text Widget?

I'm slowly wrapping my head around the new responsive images features in WP 4.4. I've got it fairly well figured out now for our CPTs & default page/post content images. But is there a way to ...
0
votes
1answer
29 views

Multi post images to post [closed]

Is there an easy way to post several images to a facebook post, so the post displays all. Like this: http://vendelboposten.dk/laekre-sko-og-nyeste-mode-fra-nova-shoes-fashion/ This link is made with ...
0
votes
1answer
531 views

Trying to set specific image dimensions and crop with ACF

My question is about image sizing. I get how to the sizing/cropping stuff natively in WP add_image_size( 'thumb-crazy', 500,500, true); And then in the template type: if ( has_post_thumbnail() ) { ...
0
votes
2answers
4k views

Some images not found 404 in localhost

I just transferred a WordPress installation from the domain to my localhost. I did all the usual steps: copy files, export DB and replace domain.com with localhost, update wp-config.php and refresh ...
0
votes
0answers
14 views

Problem uploading multiple images to a custom field in a front-end form

I'm having trouble with a portion of a front-end form that allows users to create posts in my custom post type. I want to create an image uploader that will allow the user to upload multiple images. ...
0
votes
1answer
679 views

Automatically Add Caption in image

I want to automatically add caption for each picture appears in the name of the image or the alternative text example Caption add automatic
3
votes
0answers
34 views

Wordpress crops some thumbnails but not others? [duplicate]

For some reason Wordpress is cropping some of my thumbnails proportionately rather than to specific dimensions for some images, and cropping them to specific dimensions for others. I want it to crop ...
1
vote
1answer
24 views

Putting a resized image into media library with wp_get_image_editor(

I'm using wp_get_image_editor() to resize and save an image that is being uploaded to the Media Library. $image = wp_get_image_editor( $newattachment_url ); if ( ! is_wp_error( $image ) ) { ...
0
votes
2answers
39 views

Adding a Class to an <img> Getting From Post Content

Can you please let me know how I can add a class to an image getting from Post Content? I have a page called promotion and it only contains an image which I uploaded through Add Media now in page I ...
0
votes
1answer
29 views

Consolidating two websites into one, but migrated images not appearing in Image Library

I am consolidating two websites (which are on the same server) into one. I copied the images from one website's directory to the other using rsync. rsync -av /srv/www/site1/wp-content/uploads/ /srv/...
0
votes
1answer
67 views

the_content not showing responsive image attributes srcset or sizes

I'm using WordPress 4.4.2, but am unable to get the new responsive images functionality to appear for the_content. It works for featured images, just not the_content images. I have no plugins ...
0
votes
2answers
553 views

Image and shortcode not showing in excerpt

I've paid to someone to create a theme for me. Everything works fine, expect the excerpt on category posts. It only shows an excerpt of the post ( not image ) and when I add a shortcode in the ...
0
votes
3answers
966 views

How do I embed youtube video via url in frontend posting

I would like to embed videos & images by entering url in my wordpress site. In WordPress repsitory there are many plugins for embed video by url but in my site I want to enable this functionality ...
2
votes
1answer
108 views

Gallery images titles - get from post

Is there any possibility to make a functions hook, which will automatically override titles of added images (or added during gallery creation) with post title? Just like in the example: - im creating ...
-7
votes
1answer
46 views

show hide image script after 4 seconds [closed]

On my homepage I need a javascript/jQuery script to show our site logo image and close it after 5 seconds. Only when user visits the first time our site. No mouseover or clicks needed. Complete ...
0
votes
1answer
821 views

How to insert image path in database to display product image in wp-admin?

In which database table and column do I need to insert an image path, in order to display product images in wp-admin (not on the front end)? I insert products by query in WordPress, rather than insert ...
3
votes
0answers
86 views

How to avoid Wordpress stripping EXIF metadata when resizing images?

Metadata is information about an image, and can be included in JPEG image files. EXIF metadata is information about the image recorded directly from the camera – for example, the exposure time and ...
1
vote
0answers
11 views

Catalog Images are sharp after product is visited (Woocommerce) [closed]

My woocommerce catalog images are blurred until I visit product page, than - when I go back to catalog - catalog image (that I visited) is sharp and it has changed dimension from 283.83 x 275.95 to ...
0
votes
1answer
641 views

How can I get url from image tag in feed with fetch_feed?

I used this piece of code in functions.php to add featured image in <image> tag in feed add_action('rss2_item', 'add_my_rss_node'); function add_my_rss_node() { global $post; if(...
0
votes
0answers
7 views

How to retain image path of “choose file” after wrong form submission?

How to retain the image path of "choose file" after wrong form submission? thanx in advance. I have following code in the input form <input id="image" type="file" name="coupon_image" /> And ...
0
votes
1answer
454 views

Insert image in comment reply

I have searched everywhere but can not find a plugin that allows users to upload an image into their Reply to a comment. It is a photographic blog so has to have this ability. I did try a couple but ...
1
vote
1answer
484 views

Remove inline width from figure

I add an image with caption to my page and need to increase <figure> width. But wordpress is adding an inline width. [caption id="attachment_44" align="alignnone" width="216"]<a href="image ...
1
vote
3answers
2k views

Why can I not view image attachment pages?

I have a problem with images. I can see my uploaded images, as previously, through the media library. I can access each image by clicking on "edit". But if I then click on "View Attachment Page", I ...
-4
votes
1answer
33 views

Regenerate thumbnails in S3 bucket

I am running a multisite wordpress website and all the images are uploaded to S3 bucket. I would like to change the template I am currently using with a new one. The problem is that all the old ...