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

Pagination between images (active/inactive)

I would like to add a check on the following piece of code that shows the arrows next/prev only if the next/prev image exists: <div class="gallery-image"> <p class="attachment"> ...
0
votes
1answer
360 views

wordpress makes duplicate images of different size

I have a wordpress website. I upload my pictures to the media library. And when I import a picture in a post, you get the options, one of which ask you what size to display it in. And doing this ...
0
votes
1answer
826 views

How to make excerpt image be full size instead of thumbnail?

Now when I have excerpts on the home page the image is a small square, but I'd like to change it to a fill the entire width of the content area. (as if the image was in a post.) My theme is responsive ...
3
votes
3answers
3k views

Retrieve featured image

We are building an Android app based on a Wordpress mysql database. We were able to get most of the information from the datase to display on to the app. Now all we have left is to retrieve the posts ...
0
votes
2answers
756 views

How Do I Add Images To Main Navigation Menu

I have a navigation menu but I need to be able to have background images with multiple states. There would be a background image for the multiple link states: normal, hover, and current. What is the ...
5
votes
2answers
1k views

New image size version only for the Featured Image file

I'm worried about too many files created when adding a new image size. All uploaded files will generate the new size, I need a specific image size only for the file set as Fetured image, is there ...
2
votes
1answer
210 views

Ability to edit image via WYSIWYG

In the wordpress post WYSIWYG, you can easily add images from the media library. But, once the image is inserted into the post, it is not intuitive to edit the image's source to a different image in ...
2
votes
1answer
3k views

Convert uploaded PNG to JPEG automatically

Is there a way to convert automatically uploaded PNGs to JPEGs and keep the original? In other words, let the user upload a PNG, but show in wordpress (thumbnails, large, medium, etc) the JPEG version ...
-5
votes
1answer
137 views

MIssing feature image link function

I need to be able to add a feature image to a post as a link. The link is good, it's green check. And no i cannot upload the file and insert into post dont do anything good. I have the link to the ...
1
vote
0answers
229 views

Adding (image) caching to my Tumblr widget

I've hacked together a simple plugin to show the latest image from a Tumblr blog. To avoid upsetting the Tumblr API (v1), I want to cache that image within Wordpress... I think perhaps I can do this ...
0
votes
1answer
117 views

How to add cropped custom header image?

I don't see in my custom theme any option for uploading the header image (although there is a code for it in the header) Do I need to register it somehow? Also, I have a specific size I want to ...
0
votes
2answers
3k views

Set first image (external) as featured image / thumbnail

I've read through a lot of code snippets now and it seems like wether I'm to stupid or there is no solution for this. I have a setup where some information for a product is loaded via amazon API if I ...
0
votes
2answers
3k views

How do I get gallery thumbnail URL and change the default thumbnail size?

when I create a gallery I get this code generated yet I can;t find out how <img width="150" height="150" src="http://localhost/wp2/wp-content/uploads/2012/06/28_0120-150x150.jpg" ...
0
votes
2answers
97 views

greater flexibility in targeting images attached to page

Right now I have several images attached to my page, but I only want four of them to display in a slideshow, and then the other ones are referenced within the page's visual/html box. The problem is ...
1
vote
1answer
128 views

Add attachment for all images in post

I want to move someone else's WordPress blog to a new server. I only have access to the exported XML file of the blog. When importing the XML with the Wordpress Importer plugin, everything went fine ...
0
votes
1answer
1k views

Is there a way to serve different resolution images to different devices?

I am making a mobile site, and I want to serve higher resolution images to devices with high pixel density, and normal image to the rest, is there a Wordpress functionality or plugin to help me do ...
1
vote
2answers
2k views

'Cheatin’ uh?' Error When Attempting to Upload Images After 3.4 Update

Since updating my WP Multisite to 3.4, my subdomain admins get the 'Cheatin’ uh?' error whenever trying to insert images into posts / custom posts. It seems to be a theme issue.
0
votes
1answer
42 views

images in wordpress themes

I am developin a theme in php using wordpress.I want to display images on the website . so my question is what will be the best practise 1)store the image itself in a table using an "image" or ...
1
vote
0answers
95 views

How to make the Awake or Unite theme to use the featured image as post image? [closed]

How can I make the Awake or Unite WP theme to use the post image from featured image instead of manually entering the post image URL in each post ?
0
votes
1answer
340 views

Change image name during uploading sequentially

Is there any way to change the image name during uploading in Wordpress, but with one requirement - the new file names should be going sequentially, not in hash? There was a very similar question ...
0
votes
1answer
248 views

Undefined Variable (Displaying image via custom field)

I'm getting "an undefined variable in line 6" while trying to display an image from a custom field. It's pulling the name/link of file; but not image. Here is my code <?php query_posts( ...
2
votes
2answers
109 views

How do I remove generated HTML around images in posts?

When I insert images into a blog post, wp is automatically inserted markup around the img element: specifically a div and a p (for the caption).....where is that markup being generated in wp ...
0
votes
1answer
148 views

Is there a Image Gallery which will load all my posted Images like twitter's image grid?

Many of my wordpress posts have images in them for my personal blog. I have been searching for a good way to display all of the images from all of the posts in a grid layout on a page. Similar to the ...
1
vote
2answers
932 views

wordpress post pagination with image buttons?

I'm trying to make a post pagination like this: button left image | 1 2 3 4 5 |button right image but I can't get it work. I've tried: <?php ...
0
votes
2answers
117 views

How can I scale down the width of images in bulk that are embedded in posts throughout the site?

I am building a new WordPress theme and it is quite different from my current theme. Currently the dimensions of my images are much wider than how I would like them to be for my new theme I am ...
2
votes
1answer
1k views

Can a thumbnail of an animated gif be animated?

I have an animated gif I want to show in two places, having two different sizes. I am creating two sizes in my functions.php, using add_image_size( 'small-feature', 500, 300 ); add_image_size( ...
2
votes
1answer
625 views

WP 3.4 has missing photo data

I just updated to WP3.4 and discovered that previously available images are no longer "found" by the system. By this I mean that all the image files remain online and accessible, but WP has lost ...
0
votes
2answers
2k views

Setup A Default Featured Image

I'm trying to setup a default fallback featured image on my website to ensure consistency with images being displayed for every post, even when an image is not embedded in the post. I've tried a ...
3
votes
3answers
1k views

How can I attach images to a post from the media library?

Currently, there is no way to do this in a vanilla Wordpress install. Is there a way to retroactively attach an image from the Library to a post? EDIT: Ah, let me clarify — when editing a post, and ...
1
vote
2answers
4k views

Get image from post's gallery

Is there any possibility on Wordpress to get an image from a post gallery? Images are not inserted in the post, are on it's gallery. I'm trying to do a "galleries index" page and instead having the ...
0
votes
1answer
459 views

If statement to check if post has image

I have the following code. When There is only one image in the backend, the second image shows up with a little question mark instead of nothing. I am looking for a way to check if the image exists ...
0
votes
1answer
681 views

Unattaching images from a post

I currently have a custom post type in a theme I'm developing which will be used for portfolio items. So far, I have implemented functionality that allows images to be attached to a portfolio post. I ...
0
votes
1answer
1k views

How to upload multiple files/images when developing a wordpress plugin?

I decided to learn how to develop wordpress plugins and I am totally confused and frustrated. I've already read some good tutorials and I guess I am already familiar with the basics. Now, I want to ...
1
vote
1answer
570 views

add_image_size in a Plugin i created

I created a plugin and i need to use add_image_size in it. I know how it work in the function file and for a theme, but how can i implement this in a plugin? I want new images uploaded by wordpress ...
0
votes
1answer
176 views

Storing images on a local site

sorry for the elementary question. When I'm building a local site on Wordpress, should I be storing my images in an "img" folder and then using CSS "background-image" to show these photos? That way, ...
2
votes
1answer
361 views

Is there a way to define a default caption to all uploaded images

As the title of this answer say, I want to define a default caption to all uploaded images in my WordPress... Is there a way to do something like this?
1
vote
1answer
807 views

add data-attribute to all images inside the_content()

I wonder if it's possible to add a filter to all images inside the_content() to create the following image pattern for all images … <img class="digest" src="smallest-file.jpg" ...
1
vote
1answer
1k views

Custom page template to display all image attachments

I am tryin to insert all pictures in media to page. By meaning all pictures, everything added in blog. I ve been looking this feature all day. Is there any shortcode for that or something easy to make ...
0
votes
2answers
792 views

Filter for post_thumbnail: link to small src and add data-attribute [duplicate]

I wonder how I can link manually to the smallest filesize for the_post_thumbnail() within its filter function … add_filter( 'post_thumbnail_html', 'post_thumbnail_html', 10, 3 ); function ...
2
votes
1answer
355 views

Check if page/post has any anchors that link to an image jpg/gif/png

What I'm aiming to do is add fancybox to a site I'm developing, but I only want to enqueue the JS/CSS etc if the page/post needs it. My thoughts are that I would need to check all the anchor tags on ...
1
vote
1answer
585 views

Change Default Image HTML

I am making a Wordpress theme and want to change the default image html. For example if you upload an image using Wordpress uploader it generates the following html for your images <a ...
2
votes
1answer
505 views

Prevent Width and Height Attributes in Image Tag Output

I'm trying to control the output of the random image within this bit of code. The end goal is to NOT output the width and height attributes for the image. I want this: <img src="URL HERE" ...
0
votes
1answer
59 views

Only show posts with image and the correct ammount of posts in loop

This script makes a loop showing only posts with images, but I have a problem. It doesnt show the right ammount of posts pr page. Probably because it counts the total nr of posts, including the ones ...
1
vote
1answer
530 views

Mass update excerpt

I'm using a photoblog theme which upon creating a new post it takes the post attachment and saves a modified "img src" string into the excerpt field. It then uses <?php the_excerpt(); ?> to ...
7
votes
7answers
5k views

How to generate thumbnails when needed only?

I have 1000 images. How can i make wordpress to generate thumb only when needed. For example home slider will only use 10 images i dont want the other 1000 images have that thumbnail generated as its ...
0
votes
1answer
637 views

Multiple images per post - Show random image elsewhere

I'm after either a plugin suggestion or code suggestion that best handles images per post. Here's the scenario, every post could have up to 6 images, all to be assigned class names etc. All to be ...
0
votes
2answers
1k views

Images in sub-pages fail to load

I added a .htaccess file to a wordpress website I'm working on, to show nice urls instead of page ids. The content of the .htaccess is this: <IfModule mod_rewrite.c> RewriteEngine On ...
0
votes
2answers
79 views

problem with add_size_image

why if im add size like : add_image_size( 'featured1', 466, 316, false); add_image_size( 'featured2', 466, 260, false); the seconde size Does not generated What is the problem ?
1
vote
2answers
505 views

How to remove the whitespace in image name and save the new file

I am using a wordpress plugin called "Add Linked Images To Gallery" in order to save a local copy of images posted on my site. I uploaded all my files in a different hosting and I was testing this ...
0
votes
1answer
157 views

Excluding post thumbnail from the attachment.php when using wordpress gallery

I am looking for this answer everywhere and can't find it. I setuo the wordpress default gallery using the attachment page which shows next and previous photos. everything is working fine and I have a ...