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
130 views

Site migration - some images not displaying in Media Library

After migrating a site from the live server to my test server (different URL), some of the images (not all) are not displaying. The src is correct, image is in the uploads folder, and everything ...
1
vote
1answer
115 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 ...
0
votes
1answer
16 views

What is the best way to associate multiple images to one page?

WP has one major problem and that's image handling. Each image is treated as a post and if you "attach" an image to a page, you cannot un-attach it. Without installing a gallery plugin and without ...
0
votes
1answer
88 views

Change the URL of an image from wp_get_attachment_image_src

I call a lot of images with wp_get_attachment_image_src() and would like to off load those images to a CDN. Is there a filter to grab the URL and change it?
0
votes
0answers
16 views

Any easy way to automatically set the first inline image in a post as the thumbnail, for relative images?

I stumbled upon a problem in this post if you use a link like i.e. a relative URL, it won't work is there a neat trick around this problem? this solution should be URL independent. I.e. use a php ...
0
votes
1answer
75 views

how to both crop (with tool) and resize thumbnails having only a max width constrain?

I can't found my very problem in other threads. I'll try to explain: want to use thumbnails MAX 400px width. That means that CAN be 400px, but not always they should be 400px width. They can be even ...
0
votes
1answer
94 views

When does WP resize an image file

Creating an image gallery. Using WP for image upload & management. Pictures will be uploaded of various file sizes and pixel dimensions. Page load time and SEO are negatively affected by ...
1
vote
0answers
41 views

Setup Featured image on all posts from thesis thesis_post_image custom field?

I moved from thesis to other wp theme and i want to change the thesis post images (these are saved under thesis_post_image in database )as featured images. Site have over 1000+ posts. Is there a way ...
3
votes
1answer
146 views

How do I delete all generated images from my server except those currently used in posts

I have a new set of image sizes for my site's in-development theme. My server is filled with old image sizes, most of which have never been used. You've heard this one before, right? The Question How ...
0
votes
0answers
23 views

Make first inline image an attachment, so the featured image can be set automatically with a plugin?

So it is NOT an attachment yet, it is inline e.g.: <img src="../pic/logos/rsi.gif" /> in the post. And I want automate that the first occurrence of such an image becomes an actual attachment ...
0
votes
1answer
37 views

Search and replace image urls in posts

I'm struggling with my recently imported posterous data. All the image urls in the imported posts looks like this: ...
0
votes
2answers
635 views

NextGEN Gallery - open all images on page in fancybox [on hold]

For now, I am not using NextGen Gallery. For now I am adding class="fancybox" and rel="gallery" to each image and it opens all images within a page in fancybox. However, client wants to start using ...
0
votes
1answer
31 views

Is wordpress compressing my images? if so, how to prevent it?

I am using 'featured image' fields in my post and the images are sized and compressed already but whenever I upload an image that has some text, I keep noticing the image reduced in quality ...
0
votes
0answers
13 views

Change default gallery image size? [duplicate]

I'm using WordPress' built in gallery feature on a post. However, it produces the images with inline height and width attributes: <dt class="gallery-icon portrait"> <a ...
0
votes
0answers
44 views

Slider Issues using MetaBox Plugin

I'm just now joining a previously launched project. The home page slider is a custom meta_box type from the MetaBox plugin. Here is the code to add the fields. $meta_boxes[] = array( 'id' => ...
0
votes
1answer
174 views

Cannot use existing image as a featured image since 3.8.1 update

Since the 3.8.1 update i have been unable to use an existing image in my media galley as a featured image thumbnail on my blog. I have to manually download, change the name, and re-upload the file in ...
0
votes
1answer
48 views

Replace taxonomy term with an image in a custom loop

Just as the title says i want to replace the term from a custom taxonomy with an image, but only in one custom loop and not in the main loop. So i have a custom taxonomy named Tax1 that has two ...
0
votes
0answers
52 views

Featured images not showing on some posts

My website that i am building is no longer showing featured images on certain blog posts. http://www.elginmanagement.com/category/blog/ I have disabled all plugins and it still fails to work. What is ...
0
votes
0answers
43 views

Media Library Image search goes to No items found

I have a wordpress site, It contains several images in media library, Those images are uploaded by vary users with admin access, The issue is if try to search image while insert image to post, It ...
0
votes
0answers
25 views

Change the Featured image for child posts

I have created two post type for my website ("product" and "variation"). Each variation has a feature image and their post parent is a "product" post. I would like to be able to change the different ...
0
votes
1answer
36 views

Change image size depending on page

I've got a simple photographic site and it uses large image sizes throughout. On the archive page, however, I've got about 35 posts each showing the first image of each. By default, the images being ...
0
votes
1answer
2k views

upload featured image from front end using wordpress add media button

I want to submit custom post from frontend. i have made form to make this happened. But i want to upload featured image form add media button of wordpress. Code is <?php /* Template Name: post ...
0
votes
0answers
7 views

How can i resize/force every uploaded post image width to be 460 [duplicate]

How do I resize every uploaded post image to be always 460 width by whatever corresponding height?
1
vote
1answer
55 views

Alter image meta fields in the Media Library

To improve user experience, I want to make changes to the image meta fields in the Media Library: As demonstrated above, I want to change the Caption field to Source and remove the Alt Text and ...
0
votes
1answer
41 views

Images with excerpt function

I got this great excerpt function that keeps my paragraphs in tact. Works great btw. function pietergoosen_custom_wp_trim_excerpt($text) { global $post; $raw_excerpt = $text; if ( '' == $text ) ...
0
votes
0answers
19 views

Modify images when inserted in to WYSWYG Editor

When an image get added it currently adds <a href="www.domain.com/image.jpg"><img src="www.domain.com/image.jpg" /></a> I am aware that user can directly add the link. However the ...
1
vote
0answers
30 views

Add an attribute to attachments

Currently attachments have title caption alt text description I would like to add another attribute to that list (e.g source). How can I do this ?
0
votes
0answers
48 views

Only ads with pictures in featured slider

I have classified ads wordpress website with jCarouselLite slider on main page. Is there any way to make the featured slider exclude ads that have no image attachments, so the featured slider only ...
0
votes
1answer
399 views

Wordpress function: limit size, only jpg, jpeg, limit of uploaded files per account

Need help with a function that will limit upload for non admins: Check before upload if file is jpg, jpeg. Check before upload if picture is not bigger than 700kb. Limit uploaded files to 7 per ...
0
votes
0answers
49 views

the_content not including blog image URLs

I am using the jQuery Image Lazy Loading Plugin on my WP 3.3.1 blog, however I have found that the_content does not include the image URLs, so the preg_replace that this function does cannot find any ...
1
vote
1answer
100 views

Image LazyLoad plugin not loading jQuery dependancies with wp_enqueue_script in WP 3.3.1

I am attempting to install the image LazyLoad plugin with use on my Wordpress 3.3.1 blog. I have followed the basic instructions, so it is installed and activated on my development site. The ...
1
vote
1answer
102 views

Populate a slideshow list of images from images in a wordpress page?

I'm using the "flexise" slideshow script to automatically scroll a list of images. The list is hard-coded along with the script in a wordpress template page. While this works fine, how could you make ...
0
votes
1answer
243 views

wp_get_attachment_image() not working when trying to add with and height attributes

I am using wp_get_attachment_image() to try and output an img tag with width and height attributes. Here is my code: $thumb_src = wp_get_attachment_image( $id, 'thumbnail', false, array('width'=> ...
0
votes
1answer
115 views

Using mysql to replace img src?

I tried to use the Enable Media Replace Plugin to replace some images on my site with updated versions. There is an option to update all instances where the file is used on the site, but this only ...
0
votes
0answers
52 views

PHP script to list all images from Nextgen gallery [on hold]

I would like to list all photos from nextgen directory. Could anyone help me how it might look like to get it by using scripting in PHP?
0
votes
1answer
52 views

Creating image gallery in wordpress

Lets assume I have two following directories fruits and vegetables under my image folder and that I want to show all images on some specific page. My questions are following: How to implement PHP ...
0
votes
1answer
19 views

How do I get resized thumbnails?

I'm getting post thumbnails by calling the_post_thumbnail(array(400,300), true); However, this displays the fullsize featured image, just resized with the html "height" and "width" tags. This is not ...
0
votes
1answer
120 views

Generate fixed image sizes for different pages, eliminate sizes during upload

I've built a few sites in Wordpress and in general I'm quite pleased with all the possibilities it has developed lately. There's one main thing that is utterly confusing for end users; the sizes they ...
0
votes
1answer
92 views

Retrieve first image url from custom post with pagination

On my custom page with pagination I have 6 pictures from the last posts, so far so good. Have a look here: http:sayami.de My code: <?php global $wp_query; $paged = ...
0
votes
1answer
205 views

Function to remove all classes on images inserted into posts?

I'd like my images to have no classes assigned to them by default, as I (sometimes) add my own classes to create custom 2 column layouts... can I do this without hacking the core? From my googling it ...
1
vote
2answers
223 views

Programmatically Set First Image as Featured

I have over 400 posts with images inside them, I have got a new template which requires a featured image for each post, something my last template did not require... I am wondering if there is a ...
0
votes
1answer
85 views

Image limit from 1 to 5

I found this code posted by: MikeSchinkel some time ago have a question how to change this code that i will be able to upload max 5 pictures insteed of 1 ? :) ...
1
vote
0answers
378 views

How to set featured image in wp_insert_post

I have a register form with upload field and when the user registers i create a new post. I need to have the uploaded picture on the featured image of the post. I have see something like this but i ...
0
votes
1answer
239 views

insert image alongwith with custom data via a frontend form

I use wordpress as a cms. I wanted to insert custom data via a form from the frontend in my wordpress site and then echo it on a page somewhere. After learning from here and there I am able to put ...
1
vote
1answer
115 views

Prevent large image uploads

I want to prevent users in my blog from uploading large size images. And I mean large in px size not MB. Max Upload is set to 8MB which should be ok but I wan't to prevent uploading for images larger ...
3
votes
1answer
41 views

Alter media caption/description conflict in Wordpress?

When uploading an image, Wordpress reads the description meta data from the jpg via wp_read_image_metadata and inserts it into the post_content field when adding the attachment via media_handle_upload ...
0
votes
0answers
38 views

Wordpress Image Resize fails without Error Message

I wonder why resizing a jpeg image fails in Wordpress without throwing a PHP Error with memory_limit error or Filesize Error. The image is 2MB big jpeg with RGB colorspace. Dimensions 4496x4496 ...
0
votes
0answers
67 views

image path error in wordpress multisite

I have a WordPress multisite and I can upload and display images in the main site, but not in the others. When I upload an image, it doesn't show any error, but the image doesn`t display, like when a ...
0
votes
0answers
22 views

How to move images from /uploads to the /uploads/Year/Month structure? [duplicate]

A site has more than 5000 images (without the automatically from WP generated ones) in the /uploads folder. The site is very slow, I want to move the images into the /uploads/year/month structure, and ...
0
votes
0answers
56 views

Removing image dimensions from `the_content`

I'm looking to remove image dimensions from the_post_thumbnail, as well as the_content. I've found the following code, but there's a slight issue: add_filter( 'post_thumbnail_html', ...