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
82 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
57 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
27 views

PHP script to list all images from Nextgen gallery

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
40 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
17 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
59 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
52 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
69 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
82 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
73 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
48 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
79 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
50 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
30 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
18 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
53 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
34 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', ...
0
votes
0answers
46 views

Protocol relative url not pulling up images on IE, FF, and OPERA

I'm running into an issue where I'm using the protocol relative url for the images from the wordpress Amazon s3 plugin on my SSL pages. In Chrome, all images are loading fine but when I tested it on ...
0
votes
0answers
19 views

Attaching unique images on common template

I'm building a membership site with enhanced user profiles and multiple profile types. I'm using custom post types and Advanced Custom Fields. I'm using a single template for updating the profile ...
0
votes
1answer
38 views

How can i specify the size of the image rendered by the_content();?

I can do it manually like this: echo get_the_post_thumbnail($post->ID, 'large'); But how can i set the size of the image rendered by the_content(); to Large too ?
0
votes
0answers
22 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
26 views

Server Path Information

I have a plugin that uses server paths to define the location of an Image Folder, however, I have decided to have a CDM or a new separate server to host my images. Currently all the paths look like ...
0
votes
1answer
20 views

How do I embed an image at actual size?

I'd like to give the user the option to insert images into posts, and have the image display at its actual size. How do I do this? Currently, if an image is selected from the media library, a ...
0
votes
0answers
31 views

Set Featured Post Automatically - First Image included IN the post

I want to set the featured image to the first image IN the post content. I've come across a few functions that grab the first image attached to the post. Sometimes a user will add an image to a post ...
1
vote
0answers
137 views

How to make thumbnails of uploaded animated gifs NOT animated

I am having an issue where I want the thumbnails of my animated gifs to NOT be animated. I tried to talk to hostgator about helping with this issue and they simply said that I must find a solution ...
0
votes
1answer
37 views

Retrieve First Image Function

I am using this function to retrieve the first image from a gallery in a post. However this doesn't work properly when I re-order the images in the gallery. It is stuck with the first image at the ...
0
votes
1answer
62 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; ...
0
votes
2answers
86 views

Limit image resolution on upload

I'm running into a problem where a particularly huge image is causing my VPS server to reboot because of memory issues. The configuration of this is out of my hands, it's sort of like the host's ...
2
votes
1answer
32 views

Is there a shortcut to change bulk BMP images to JPG images in a site?

Images in WordPress posts, as I understand, are uploaded manually. They are uploaded by default to uploads folder. A client of mine reported that, in one of his site, he uploaded all the images in BMP ...
0
votes
0answers
129 views

Attaching Images to Multiple Rows within Foreach Loop [on hold]

I'm trying to modify the Product Add-Ons plugin for WooCommerce. I need to be able to add an image for each add-on item. So each add-on item row would look like: Name Price Image Each row is ...
1
vote
0answers
47 views

The alt=“” attribute is empty

My WordPress installation creates empty alt attributes inside images. I also installed the plugin SEO Friendly Images but it did not change anything. <img class="highmage" ...
0
votes
1answer
22 views

Why WordPress doesn't show pictures when I upload them in a new post?

I have a serious problem. When I write a new post in the edit window, I try to upload a picture via the media upload button, and it just doesn't add them. I just cant upload any type on media at all ...
0
votes
0answers
24 views

Add two images with Sweet Testimonials

Ok, I've customized Sweet Testimonials to add a before and after image to a client testimonial post that is added by clients on the front end of the site I'm working on: ...
0
votes
1answer
21 views

Does WP create multiple images?

When uploading an image in WP, does it creating multiple sizes (and multiple files) of the image? If so, are they all loaded or just certain ones (which and why)? Meaning, if x images are created ...
0
votes
0answers
15 views

Clicking the “Edit Image” button when editing a page shows the full website in the modal window - instead of the image properties

I'm experiencing very strange behaviour on a Wordpress site hosted on Windows. When editing a page and clicking on any image to bring up the two buttons (Edit and Delete), after I click the Edit ...
0
votes
0answers
13 views

Possible way to add Wordpress gallery caption

I am trying to add caption to Wordpress Gallery. I can only add caption to each images but, Is there a way to add caption to the gallery?
0
votes
0answers
147 views

How to add Next / Previous Image navigation to the attachment page

How to add Next / Previous Image navigation to the attachment page Every post have only one image attached Here is a demo attachment page where i want to add navigation link to next and previous ...
1
vote
0answers
27 views

Is a conditional image creation with add_image_size possible and which would be the best hook? [duplicate]

I try to get the Picturefill solution described here running with the latest Wordpress install. One thing I wonder is the following. Would it be basically possible to only conditionally create image ...
0
votes
0answers
30 views

Personalized images in widget MU site

I am using the module image-widget and is it possible to create personalized images for Multi user sites ? I want to make header, footer and right sidebar in image-widget. That is admin uploaded ...
0
votes
1answer
75 views

Programmatically use nextGEN Gallery

Can I programmatically use nextGEN Gallery? By that I mean I like to programmatically create galleries, albums, add images, and then link them to posts in my WordPress site.
0
votes
0answers
39 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 ...
0
votes
1answer
115 views

Advanced Custom Fields (ACF) Plugin - Random Image in Sidebar

I’ve created a Custom Post Type, “Slide”, and I’m attempting to load a random slide image, with title and caption, in my sidebar. I’m using the Advanced Custom Fields Plugin for the post/slide ...
2
votes
1answer
128 views

Add custom Attachment Display Setting for images

I've been doing a lot of research and I've yet to work this out. Can you add in a custom option in the Attachment Display Settings (part of Insert Media dialog in post editor)? What I'm after is the ...
0
votes
0answers
53 views

Breadcrumbs for Single Image page

As we know in different post we can use some image which we uploaded. This image can be used in many post but it has only one PARENT post. My question is how to track from which post the user came ...
0
votes
0answers
217 views

How to add fields to _wp_attachment_metadata?

I'm developing a custom metabox with the possibility to upload images and give the user the possibility of deciding whether those images are to be displayed on the front end or not, instead of having ...
0
votes
2answers
214 views

Display ajax preloader for large images within posts

Our WordPress installation runs only images within posts. Generally medium, lightweight images; but we are also publishing larger images, sometimes gif animated which take enormous time to load. When ...
0
votes
1answer
118 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]; ...
0
votes
1answer
10 views

Using file extensions in image titles

I need to find some way to either update all the titles of my images to use the file extensions, or update the caption with all my images to be the file name. I have over 900 images, so doing this ...
2
votes
1answer
143 views

Image resize with image url

I am using wp_handle_upload() to allow users to upload the images in back-end and I want to re-size images to a custom size before uploading it. Is there any way without using any plugins or so to ...