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
2answers
99 views

Display number of latest images from wordpress gallery in your homepage

I was trying to get a solution for something that I am trying to accomplish. I am using the wordpress native and simple gallery to show images in a page called: "gallery" so far - very simple. it ...
0
votes
0answers
40 views

custom Image upload coding wordpress

Hello im working on WordPress plugin with separate data tables in same database. so far im doing okay with add new post. I want to add images to my post. I tried many things but so far I've got ...
0
votes
2answers
53 views

Featured Image problem with resizing

I want include function to resize featured image to 80x80, im add this code in my function.php add_theme_support('post-thumbnails'); set_post_thumbnail_size(80, 80); But is not work very good, ...
0
votes
1answer
52 views

Where is the right place to store custom images?

I'm converting my old web project to WP and there are tons of book covers that aren't to be uploaded/managed by WP but by my own functions. Where is the right place to store such a kind of custom ...
0
votes
0answers
125 views

Rename uploads filenames to POST-ID on upload

I would like to change the way Wordpress rename uploaded files on upload. As I upload an image whose filename is "see-sunset.jpg", Wordpress will set up scaled versions and rename filenames to ...
0
votes
0answers
66 views

Delete post is image is missing or broken link

Is there a easy way to delete post if image link in post is broken? I want to move large number of posts, but I noticed that some images may have broken links (to external sites) and images are ...
1
vote
2answers
92 views

copy attachment title to description and alt text

I have a blog with a lot (over 1000) images. Each image has a meaningful descriptive filename. Wordpress has title caption and description fields for images. What's the easiest way to batch process ...
0
votes
1answer
383 views

Woocommerce Image size and cropping issues

I'm using woocommerce to build an Amazon affiliate store. As you can see, these images are totally unusable when hard cropped, but when I uncheck the hard crop image the page alignment looks even ...
1
vote
1answer
213 views

Rename image uploads replacing “width” and “height” in filename with “medium”, “large”, “small”

Good morning, I am trying to change name format that Wordpress uses to rename uploaded files. As I upload an image whose filename is "desert-landscape.jpg", Wordpress will set up scaled versions and ...
0
votes
1answer
23 views

> added to images link in Wordpress

For some reason today my Wordpress decided to add > to every image link on the website, resulting 404 on every image. Any idea how to resolve it? Nothing has been changed from the last time it ...
0
votes
0answers
57 views

Getting taxonomy images to display on single-post with their terms

Having some trouble with taxonomy images plugin. I am on single-post.php and I want to display my post's taxonomy terms & the term's associated images. Ideally, I'd like the taxonomy description ...
0
votes
2answers
53 views

Images not rendering

I have a baking blog that I run and recently I have changed the url. The problem I have now is when I add images to the posts or libary they are not showing/rendering. The uploading steps go ...
0
votes
0answers
13 views

Migrating only media files

I have sort of a specific situation. I want to move my Wordpress site to a new hosting situation. The site has had weird problems in the past, so I was planning to do a fresh installation of Wordpress ...
0
votes
0answers
226 views

How to specify image width and/or height attributes for images uploaded using Wordpress uploader

When I check my website speed using GTMatrix for many images uploaded using WordPress uploader that image(s) are missing width and/or height attributes. Wordpress by default provides width & ...
0
votes
1answer
28 views

Custom image sizes

I noticed lots of articles on how to add custom sizes for images (media). But how would I be able to add a custom size such as "width:100% and height:auto" this way it will make sure the images are ...
0
votes
1answer
29 views

Media Editor uppercase extensions to lowercase

What's the reason for making the extensions on uploaded images lowercase as soon as the upload is complete?
0
votes
0answers
33 views

My Wordpress RSS feed has an “attachment-thumbnail”: how to remove it from the feed

My WordPress feed has two images. I would like to remove one, the "attachment thumbnail". How best do I do that?
3
votes
1answer
1k views

How to create thumbnails for PDF uploads?

I'm developing a website that needs to allow users, within Gravity Forms, to submit a PDF file and have a JPG thumbnail created of the first page of the PDF that is then displayed in the created post. ...
-1
votes
1answer
33 views

add if statement to the featured image

I have a featured image. I want to add an if statement to the size. For example, if the featured image height exceeds 500px I want to add something. Is that possible ?
2
votes
1answer
61 views

How to Change Wordpress Image URLs

I am facing a problem related to image URLs on one of the website that is bestappspoint.com Most of the images in this site are with capital letters in URL (I didn't know the consequences before) but ...
1
vote
3answers
129 views

How to resize images due to container width automatically server side/without CSS

Does anyone know how to resize the served images, so the image has a width due to the content containers width. I do not mean to resize the image via 100% width css, but instead resize the actual ...
0
votes
0answers
42 views

404 error on many images that exist in media library

I recently checked my stats and found lots of 404 errors on images in posts. I first noticed it with my background image but when investigating found many more also. Here is an example of a link from ...
0
votes
2answers
1k views

get_post_gallery_images returns thumbs . I want full size

I have the following code on my site. <?php // image gallery content if( has_shortcode( $post->post_content, 'gallery' ) ) { $gallery = get_post_gallery_images( ...
5
votes
1answer
433 views

How do I hook into WordPress to save an uploaded photo as an alternate size to an existing photo?

I have image resizing disabled in media settings by setting thumbnail, medium and large size dimensions all to 0. For every photo on my blog, I upload the same photo in three sizes: large/full-size ...
0
votes
0answers
58 views

delete unattached images on post submit

I have given permission to the users to register on my blog and add the contents (posts). Blog post will allow only 3 images to be inserted (please see the screenshot below) achieved by using custom ...
0
votes
0answers
12 views

How to add an image in the widget zone? [duplicate]

I want to add an image to the sidebar, where widgets are displayed. How can I do it?
0
votes
1answer
70 views

Determine if get_the_image has image on Get the image Plugin

is there a way / function to determine if Get the image plugin successfully grab the image from post? Something like has_post_thumbnail on WordPress featured image. I need to know if featured image ...
1
vote
1answer
106 views

Use Filename for Alt and Title Tags

I currently name all of my image files like this: Earth the Blue Planet.jpg Which when uploaded gets changed to this: Earth-the-Blue-Planet.jpg I was wondering if it is possible to have the ...
0
votes
1answer
86 views

Strip Image Classes from HTML Output

Does anyone know how to remove all of this from the image HTML? class="aligncenter size-full wp-image-31053"
1
vote
0answers
103 views

Frontend Image Upload

I have the following code used at the top of my front end user profile page, everything works and displays fine except for the following problem .... If I upload an image and submit the form usermeta ...
1
vote
1answer
90 views

Multiple variables through wp_get_image_editor

I want to merge 2 images with imagick. I already know how to merge them with imagick, but I need to pass 2 variables through wp_get_image_editor to get this to work. I named the 2 variables ...
0
votes
1answer
259 views

How to add a credit line to a photo caption

I'm trying to find a way to automatically add a photographer credit line to user-inserted photos. I've added custom fields to the media uploader for 'Photographer Name' and 'Photographer URL' but I ...
0
votes
0answers
26 views

Image media upload problem for images > 800px?

I am getting the pink HTTP error message when i try to upload certain images. I narrowed it down to the following, it only seems to happen for images > 800px. But when i refresh the media the ...
0
votes
0answers
58 views

Removing Image Attributes

right now my images are outputting like this when I add them to my posts: <a rel="highslide" class="highslide" href="http://domain.com/news/1013/filename.png"><img ...
0
votes
0answers
37 views

Image media upload problem in page editing modus?

I can't figure this out, uploading an image when i am editing or adding a page doesn't work correctly. During upload i get a http error. Debugging shows async-upload.php gives a 500. The funny thing ...
0
votes
1answer
57 views

How to redirect homepage to actual URL?

I have a stupid problem. In the custom header template I include on all pages are some images. When I set the links to the images as images/image.png it works on the homepage but not on other pages. ...
0
votes
0answers
57 views

Uploading images from post editor fails with “An error occurred in the upload. Please try again later.”

Also when i want to upload from the media library the progress bar gets stuck at crunching. but with the browser upload it works just fine but the images don't appear in the insert media pop up. also ...
0
votes
1answer
150 views

Insert images into wordpress post with a query

I have a Wordpress installation with 2.000 posts. Also in a separate table of my database I have a set of image paths and the filenames of the images, each image is assigned to each post of my ...
0
votes
0answers
23 views

Is it possible to print kb size of an image attached to a post? [duplicate]

Trying to find a way to print kb size of an image attached to a post. Has anyone an idea how to do this?
0
votes
2answers
63 views

Uploaded attachment not set as featured image

The following code uploads an image which I want to associate with a custom post type. $upload_overrides = array( 'test_form' => FALSE ); if($file_errors['error'] == 0) { if($new_reseller_id = ...
0
votes
1answer
264 views

Uploaded image not appearing in custom post type

I am writing a plugin which should allow users to create a custom post type called reseller and attach an image. The image is being uploaded to the uploads folder and appears in the media library with ...
0
votes
1answer
33 views

How to Featured content with images in home page?

Today i saw a WordPress blog which is using Featured Articles in its home page. can any one tell me how to add that code manually to my blog only in home page. Here is the screen shot and blog url ...
0
votes
0answers
317 views

How to upload image and attach to Woocommerce product gallery?

I got the following code which takes and image, uploads it to my server and sets it as a featured image. How can i change it so it adds the image to the product gallery in Woocommerce? Maybe ...
0
votes
0answers
27 views

How to change attachment data?

When i uploading images in wp i change it's name by post name, but in media list image titles still is original. How to change it on upload? I tried wp_generate_attachment_metadata, ...
0
votes
1answer
23 views

How to change default image rename?

When i upload image with same name Wordpress automatically adds the number before the extension like some_name1.jpg. Is it possible to change this process that id also added a bottom line like ...
0
votes
1answer
19 views

Custom Image Size in Insert Media

I have some custom image sizes set in my functions and it works just as one would expect, but I am would like this custom image size to be present when a user adds images to a post. You know when you ...
0
votes
1answer
131 views

hook into completed image upload filter

I'm trying to run a little function to determine the luminance of an image and store that in the postmeta for that image.. I have the function working, but id like it to fire when an image has ...
0
votes
0answers
130 views

Get caption from image gallery

I'm using the retailer template with wordpress and woocommerce. There is an option to add images to a product. It makes a image gallery. And you can add a specific caption on each image. The code I ...
0
votes
1answer
169 views

How to find attachment by it's name?

Is it possible to get attachment id by its name? And at once may be it's possible to get parent post, to which this attachment is assigned?
0
votes
1answer
271 views

Get all first images of posts in same category

I am trying to build a list of thumbnail images linked to their associated single content pages within the same category. So, when I am in the category of 'x' the list returns all image attachments ...