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
0answers
29 views

Cropping image results in image being too small

This is the wordpress version 4.2 powell I crop 1500 x 1000 and then press on crop, then save. Resulting image size: 1497 x 1000 I don't know, I somehow hoped that wordpress is able to bloody ...
0
votes
0answers
23 views

How To Get The File Extension Of Images Having Different Extensions In A Directory?

I am posting this in Wordpress because I am working to get the featured images of all the plugins in the wordpress repository. http://plugins.svn.wordpress.org contains the images I want. BUT, the ...
0
votes
0answers
36 views

Custom WordPress Theme - No Slider(s) Images

So I created a custom WordPress theme and the final thing what I need to add and create is a home page slider. But, whatever slider I'm installing, I cannot see images inside that slider. I've tried ...
0
votes
2answers
96 views

Broken urls with http site and https wp-admin

I am currently using a wordpress installation in which all the website is intended to be shown in http while the https part is protected by a self signed certificate, distributed manually to the ...
1
vote
2answers
34 views

Generate image for newly added size

I have added a new image size to a wordpress site with lots of images already present with all their thumbnails. Is there a way to do this: given the post using a specific image, get the attachment ...
1
vote
1answer
199 views

Making WordPress Gallery (.gallery-item) Responsive?

Shortcode for Gallery: [gallery link="file" columns="5" size="medium"] I’m using a 5 column gallery on an inner page of a website, obviously when the site responds down to mobile and even tablet ...
3
votes
1answer
1k views

Which action hook can I use when a featured image has been selected

I have made a plugin for wordpress which copies the image to another directory when a post has been edit. But if you only upload another featured image and don't save the post. The image has been ...
0
votes
1answer
84 views

JSON API Plugin not showing Attachments id reused

First of all, I am talking about this plugin: https://wordpress.org/plugins/json-api/ So now regarding my problem: The plugin is working fine and without any problems. All attachments are showen for ...
0
votes
0answers
44 views

Uploaded Images Not Showing

I'm trying to upload images to my website through the media library and the upload goes just fine. However the images won't shown, not in the gallery neither in posts. When I go to the link of the ...
0
votes
2answers
27 views

Get image from one page and show/add it on another page

We have one custom requirement that when we add an image (suppose a car image) in the homepage, after that when I'm creating a new page, I always want that car image to appear on the right hand side ...
0
votes
0answers
18 views

How can I hook and edit on the fly an image uploaded

I'm new in wordpress plugin development and I'm trying to hook my function to one of wordpress's upload / attachements functions. My target is to: - hook to wordpress function (I've tried: ...
0
votes
1answer
163 views

Images getting corrupt automatically

I had switched theme of my blog, but when i opend my blog i saw there that thumbnail of posts( featured image) are not showing up. I moved to my old theme back but images are still corrupt showing. ...
0
votes
1answer
231 views

Fancybox just loading small white square

I've tried what I could, but cannot get my image to load with the fancybox plugin. The plugin is there, and seems to load, but without the image. Instead I get a small white square on the top left of ...
11
votes
4answers
24k views

How To Retrieve An Image Attachment's Alt Text?

I am using an attachment.php file to show large versions of images that have been clicked on elsewhere. I'd like to pull the image alt text as a caption under the image with javascript, but the alt ...
0
votes
1answer
37 views

For what does WP generate Thumbnails?

My WP install currently generates thumbnails and an extra medium sized image for every image that I upload. I don't see WP using these images everywhere so from my perspective these images are just ...
0
votes
1answer
51 views

Update all images url imported from HTML pages

I have to copy content from different website. I copied whole webpage and paste it in my post. All works fine. I also get images in my post but they are still linked to older website. Is there any ...
0
votes
2answers
30 views

Adding featured image messes up page layout [closed]

I got someone to design the wordpress side of my site and now I need to try to understand what they did and would be grateful for advice.I have a Page that shows sections and stages (which are ...
0
votes
1answer
48 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
0answers
45 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( ...
2
votes
9answers
520 views

Graphing libraries for WordPress [closed]

I had asked question like this long ago at WPTavern and it fizzled. Hope it fares better this time. :) Drawing graphs can be done with multiple methods (generating image files, JS, Flash) and there ...
0
votes
1answer
34 views

How to show images uncropped after uploading?

As you can see, I've uploaded an image of book. Whenever I upload images, wordpress seems to crop it all the time. Is there a plugin or a code I can put to where it will show the whole picture ...
0
votes
0answers
18 views

Anomaly with response coming from XML RPC Api get Post (integer out of range)

I am getting the following xml snippet back from a getPost call... <member> <name>image_meta</name> <value> <struct> <member> ...
1
vote
0answers
63 views

Show image EXIF info

I am working on image gallery site. On test site (which is on shared hosting) I created and tested theme and plugins. I know that WP store some extra info about image during image upload (EXIF/IPTC ...
0
votes
0answers
10 views

Only i can see that the images are missing, but other user see them just fine showing

Im using the newest version of the newspaper theme. I’m also using the Wp smush pro picture size reducing plugin Can you help me on a very odd problem. Only on my computer and also when the article ...
0
votes
0answers
75 views

Removing default alt text autofill or overriding it

What I'm trying to do is check if the user has entered the alt text for an image, and if not, then add alt text containing the post title to the image. I found a function that does this here: ...
2
votes
3answers
127 views

Responsive Images

Is there a native function to display the correct responsive image size for post thumbnails or gallery images depending on the screen resolution? Normally I'm using: 1.Custom image sizes: function ...
2
votes
2answers
2k views

Automatically replace original uploaded image with large image size

As our users regularly upload ~6MB images to use on the website (and aren't too familiar with how to resize them first), WordPress stores the originals as well as resizing them to several different ...
1
vote
1answer
74 views

Get Attachment ID from URL [duplicate]

I have the URL of an image which I know is an attachment. Now, I need to find out the attachment ID. This is what I've got (thanks to PippinsPlugins): // retrieves the attachment ID from the file ...
0
votes
1answer
39 views

Images not showing on homepage after migration [duplicate]

I have a website with one section not displaying images after migration, the src attribute returns empty urls, the site is intpro.co.zw and the section im referring to is on Latest Properties What ...
0
votes
0answers
33 views

Featured image on page set as “Posts page” in Settings > Reading

Settings > Reading is set to "Actualites", which is a static page I created that uses index.php as template. In it, the_post_thumbnail() doesn't work (although I set a featured image in my ...
-1
votes
1answer
127 views

If image width bigger than height [duplicate]

I'm making new theme with bootstrap, and having little trouble setting up content. Firstly content is set up like this: <div class="row"> <div class="col-sm-12"> <?php ...
1
vote
1answer
160 views

Understanding and altering the structure of posted images

Currently this is the (default) Wordpress image output: Float left, with caption, link to img <figure id="attachment_10220" style="width: 167px;" class="wp-caption alignleft"> <a ...
8
votes
1answer
196 views

How to change image type for specific size?

I am optimizing a site with large (dozens) quantity of images on page in a grid. For retina support the images are also need to be 2x sized. The low hanging fruit was to make sure the thumbnail sizes ...
3
votes
4answers
2k views

Overide Gallery Default Link to Settings

Is there way to control the gallery default “Link to” setting? Using the image_default_link_type filter within a functions.php file works on inserting single images into posts but it doesn't seem to ...
0
votes
0answers
24 views

Cannot upload any image into wordpress after changing from multisite to single site

I have recently changed a site from multisite to single site by changing and commenting the parameters in the wp-config.php. After doing so I cannot upload any file into the media library. The upload ...
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
2answers
57 views

Time Based change of image

Could someone please point me in the right direction, im currently using : <?php if (get_the_time('H') >= 8 && get_the_time('H') < 20) : ?> <img src="<?php echo ...
0
votes
1answer
60 views

using media_sideload_image with a file from theme directory

I'm building a Wordpress site in which an admin can upload a video file from post metabox. After that post is saved and the video file is attached to the post, I used ffmpeg to get the screenshot at ...
0
votes
0answers
13 views

Image URL Recently became Image Name and Took Page URL of Same Name

With a recent update to either wordpress, my theme or the Yoast plugin, we realized that any image with the same name as a page on our site has taken over the URL of the page. When we build out the ...
0
votes
0answers
18 views

How to pick up featured image from set of pictures

I'm trying to create front end form for posting. The following questions are concerning me so bad. How can I set a featured image? I tried set_post_thumbnail($pid, $newuploadid); but nothing happend. ...
0
votes
0answers
9 views

Images not loading after removing “Smushit”

Images in my WordPress website are not loading. This started to happen since I removed "yahoo's smushit plugin" (it does image compression) because it's not available for free anymore. I can still ...
0
votes
1answer
516 views

HTTP error when uploading an image

I know there are already a few posts on this issue, but unfortunately none of those answers were helpful to me. Every time I upload an image, I get an HTTP Error - that's it. Nothing more, no ...
0
votes
1answer
49 views

Exclude image url from search query

I have a question today. I have recently completed a website and there is search box integrated. And, I have a post which has an attachment(attachment's url is www.sample.com/image/sampleimage.jpg) ...
0
votes
0answers
29 views

How do I add padding to the p tags containing text, but not the ones containing images?

I want images within a post to span the full width of .entry-content, but WordPress puts p tags around them. Paragraphs have padding: 15px. <div class="entry-content"> <p><img ...
0
votes
0answers
49 views

Wordpress gallery previous/next buttons showing all media library images

I have just noticed that on my installation of wordpress, within the gallery image pages, the previous/next buttons are browsing through my entire media library rather than just those images that are ...
0
votes
0answers
19 views

How do I change the image URLs in my RSS feed?

I am trying to use the RSS feed as a source for emails which ends up killing Outlook 2010 users. The reason it seems is that images inside the RSS don't have the obligatory https:// prefix to them ...
0
votes
0answers
61 views

Get first URL from custom field, download and set as featured image on post publish

I have a plugin that is adding text and a URL to a custom field when the post is published (not saved as draft). I want to get/make a function or plugin to search within the custom field and sideload ...
0
votes
1answer
53 views

problem with updating metabox of upload image

I created a custom post type and metabox for uploading another image. the problem is when i add the image its shown correctly in its place in backend and when i update its also the same i had the ...
0
votes
0answers
115 views

Set featured image from link in custom field

I have a plugin (Autoblog) that adds a custom field to the post that contains a URL of an image (among other text). I'm looking for a way to set this image in the custom field ...
0
votes
0answers
28 views

Setting default thumbnail when posting a link to archive page

Is there a way to set a default thumbnail for archive pages when posting a link, ie: on someone's FaceBook wall? For example, posting a link to a FaceBook wall will show up as: [thumbnail] Link and ...