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)

7
votes
3answers
426 views

How to insert pictures without hard coded dimensions?

How can I insert pictures into a post without any hard coded dimensions (e.g. <img src="" alt="" /> instead of <img src="" alt="" width="" height="" />)? I don't want my users to switch to ...
2
votes
1answer
156 views

Include captions

I'm using the Meta Box plugin, everything works fine. I'm using it to create gallery function on some custom post type, and I'm able to display the uploaded images using this code: global $wpdb; ...
0
votes
1answer
1k views

Graphics and Formatting Not Loading in WordPress on IIS

We have IIS 7.5 and we've installed WordPress (v3.3.1) through the Microsoft Web Platform installer (http://www.microsoft.com/web/wordpress). All works fine when we load WP locally (e.g. ...
1
vote
1answer
88 views

How to generate video out of images via Wordpress plugin

I am working on Wordpress plugin which can generate video from sequence of images. I read here that we can use FFMpeg and Imagemagick (or imagick) to implement this trick. But, FFMpeg is hardly ...
0
votes
1answer
770 views

Issues renaming images during upload

The main reason for adding this snippet is all about SEO. The people I sometimes make websites for often aren't that savvy with WP and tend to upload their stuff just as is. As these are often media ...
2
votes
2answers
552 views

Converting a simple plugin to be placed inside of functions.php

First off, I know it's better practice to use plugins separately than to integrate them in functions.php but this is for a theme framework that will be deployed to multiple sites and it will be easier ...
11
votes
6answers
3k views

Minimum Dimensions Requirement for Featured Image?

I am creating a baseball website with multiple Authors. From past experience, no matter how well you know someone personally, it doesn't mean they will follow or even read your instructions. That ...
2
votes
1answer
2k views

When Uploading JPEGs, Does WordPress Compress the Original Image?

I'm trying to determine what my image processing workflow should look like. I know WordPress automatically resizes and compresses images to various different sizes on upload. I'm curious if it does ...
0
votes
1answer
905 views

CSS images don't show up with bloginfo

I'm new to WP and PHP and I'm trying to convert my 'old' HTML theme into a WP theme. I created my index.php page and linked it to the style.css. I have some images in the css and, from what I've read, ...
0
votes
1answer
623 views

Metabox image upload value

I am using meta boxes from WP tuts this tutorial http://wp.tutsplus.com/tutorials/reusable-custom-meta-boxes-part-3-extra-fields/ everything works fine but I don't know ho to call value from image ...
0
votes
1answer
53 views

Link to full-size image for subscriber only

I'm looking for a way to disable the "link to full-size image" for people that are not logged in. I would like that people become a subscriber before they can download my full size images. Is this ...
1
vote
2answers
1k views

Advanced Custom Fields

I am using the Advanced custom fields plugin to add a upload image option to a page, but I am wondering if there is a way so that, when I output it to a theme with <img src="<?php ...
3
votes
2answers
10k views

Upload multiple images in a custom metabox

I am new to theme development. I am trying to create a custom metabox that has the ability to upload a image. I am doing this on a page not a post. I want to output the images (multiple) onto the page ...
0
votes
1answer
2k views

How to Automatically import external images to Upload

Hi to all I would like to have a simple plugin, hook, anything that Automatically caches external images. Simple explanation: Actually I'm using this plugin: ...
0
votes
2answers
4k views

Include an image within auto the_excerpt?

Is it possible to include an image within the auto excerpt? So in the editor you have image then some text and once live it includes the image and not just the text?
3
votes
2answers
3k views

How do you modify the HTML output of a Gallery item (using the gallery shortcode)?

Im a bit lost on this simple problem so i thought id come and ask the pros. Ive just been told by my client that on their sites gallery, the name and description are on the same line. so for example ...
1
vote
1answer
514 views

Image Manager Plugin [closed]

I'm looking for a simple plugin that allows me to manage groups of images. Wordpress does this, but you would need to link the gallery to a page or post. Since i'm looking to create a site banner with ...
1
vote
1answer
350 views

How can I store an image in the database with Transients API?

I'm trying to store an image generated with imagecreatefrompng() using the Transients API, but it just stores an empty string (string(0) ""). Also, I notice if I set the transient before imagedestroy( ...
0
votes
1answer
332 views

Multisite Pull Recent Image Attachments from Blog ID

I am creating a WordPress network and am looking for a way to pull recent images from the sub blogs, but I am having some trouble doing so. What is the easiest way to make this happen?
1
vote
3answers
4k views

use wp_get_attachment_image() to show attachments

I really hope this is a facepalm moment, b/c i'm getting frustrated with this. Making a quick loop to show certain attachment images. lifted it almost straight from the codex but ...
5
votes
1answer
2k views

Uploading Images in the Link Manager

In /wordpress/wp-admin/link-add.php there is the possibility to add an image to a link, but it belongs to the category "Advanced" and is really a little too advanced for an average user, which needs ...
1
vote
1answer
498 views

Exclude images from “inserted into post” when trying to get attachments

I have here the coin-slider which takes all pictures from the gallery. I get the attachments through the following code: $attachments = get_posts(array('post_type' => 'attachment', 'post_parent' ...
1
vote
1answer
319 views

Grabbing the first image attached to a post and use it with the admin columns

I'm currently using @kovshenin's tutorial here on adding a thumbnail (a featured image) to my post type admin columns. Would it perhaps be possible ( and how :) ) to retrieve the first image attached ...
0
votes
1answer
1k views

Replace image urls(absolute instead of relative) by using filter in single page

I'm using a plugin called Foliopress WYSIWYG. While using this plugin, images found in the_content loop using relative image path instead of absolute paths. So all the feed images looks broken. This ...
0
votes
1answer
894 views

Post Gallery list attachments except the one used as post thumbnail

I'm doing gallery in a single post after the post thumbnail. So I list all the post attachment with the image type (with the following query) but I want to exclude the post thumbnail. global $post; ...
0
votes
2answers
813 views

How do you hide images from posts only

As the title says I want to keep images on pages and hide them from posts on my site . How can I do this? Thanks
2
votes
2answers
5k views

Find the post an attachment is attached to

I have a list of attachment IDs which are built using this array: $all_images = get_posts( array( 'post_type' => 'attachment', 'numberposts' => -1, ) ); Is it possible to take the image ID ...
0
votes
1answer
81 views

Determine if only one image attached to a post/page

I'm looking to determine how many images are attached to a post, specifically if there is only one. Basically if there are multiple images I want to display my slideshow script, if there is only one I ...
0
votes
1answer
441 views

How to extract specific image meta for all images?

Been hitting my head against a wall for a couple weeks... I'm working on modifying a geotagging Wordpress plugin called Thesography. I have notified the developer of my past enhancements, and they are ...
1
vote
0answers
451 views

Image caption with apostrophe breaks the text with qTranslate [closed]

I created my own theme and I use on two different websites, along with a very few plugins (among them, qTranslate!). I noticed that recently (I don't think it was happening before) that all my image ...
1
vote
1answer
10k views

Displaying a featured image (only img url) as the img src?

I have the following code: if (themedy_get_option('product_gallery')) { add_action('genesis_post_content', 'themedy_product_images', 1); } function themedy_product_images() { ?> <?php ...
0
votes
1answer
3k views

How do I display the featured image from an image gallery using a reference in code? (example within)

I've been trying to get the featured image of a post to be displayed outside of the loop for all the image thumbnails. That way, the featured image (of a product) is displayed in large and the ...
1
vote
2answers
535 views

Store Snapshot created via wordpress to use with lightbox

i know this is a bit of a weird question but its a real time saver so if you got any ideas (even partial) i would really apreacate them :) Ok... so i am using wordpress built in interface to capture ...
1
vote
1answer
297 views

Upload multiple images and insert them into custom html code

Good evening. :) Well, my mother is currently using a wordpress installation for her day to day blogging. Often, a post consists of some text and a few images, which are displayed via the very nice ...
1
vote
2answers
938 views

How to Create an Image Upload Box for Custom Posts?

Is it possible to have an image upload box in a Custom Post Type? I would like the user to be able to upload specific images just for the CPT.
0
votes
1answer
2k views

Image URLs stopped working due to Permalinks?

I've been changing my Permalinks and changing my site the the "www" version (Which I think has broken my image and video links). All my images are "red x" now, both inside the library and the posts ...
2
votes
2answers
1k views

Get uploaded image url

I am working on a plugin that constructs a newsletter witch uses a template with a few images. The images have been uploaded using the Media Library (uploads/current_year/current_month/) and I want ...
2
votes
3answers
2k views

Add multiple images to a page sidebar

What I am trying to achieve is this: I have a simple page and I want to dynamically add multiple images to it on the sidebar one underneath another. I was thinking about either using meta boxes, post ...
0
votes
2answers
370 views

Import images from self-hosted to WordPress.com

I'm trying to migrate my self-hosted WP blog to WordPress.com, images included. Originally images were hosted on various image-hosting websites, but I've used this plugin to cache and upload them to ...
0
votes
1answer
954 views

How to use the thumbnail size with catch_that_image

Im using catch_that_image() to grab the first image of posts and use that as a thumb in a loop but the thumb is only 40px/40px and the image has to be scaled dramatically so I'd like to figure out how ...
1
vote
1answer
4k views

How can I insert an image map into a Wordpress blog post?

I'm trying to insert a custom image map into a blog post, so that clicking on different parts of an image at the top of the post will lead to anchors in other parts of the post. I have generated the ...
0
votes
1answer
107 views

Stop Attachment image names from taking top level permalink

I don't know why but images uploaded to my site in posts are getting a top level permalink. So if I upload an image into a post called "Apple" then it gets an attachment page at mysite.com/apple and ...
0
votes
1answer
236 views

Selectively hiding or allowing thumbnails of featured images on front page

I need a way to selectively hide or allow thumbnails of featured images to appear on the front page of my site. Ideally, it would be a custom field on each post, where I could choose - for example - 1 ...
0
votes
2answers
146 views

Clicks registering on Preview DNS site

I set up my site on a PreviewDNS, I have since pointed my Domain to the correct place and changed all the links to non-previewDNS links. However I can see (using Jetpack) that visitors to my site are ...
1
vote
4answers
1k views

How can I receive the image id using the media box?

The code below allows me to retrieve the image string, when Insert to Post has been pressed, but what would be the correct way to retrieve the ID of the image? So I can retrieve all information ...
2
votes
1answer
2k views

How can you upload an image from within a settings page?

Is there an easy way to include an upload box to your settings page? I am building an Open Graph options page and I like users to upload a standard image directly from that page.
0
votes
2answers
1k views

How to call Wordpress First Image Post or else Attached Image or Default

Can anyone help me develop a wordpress script that [IF] will get first image post and if it doesn't exist it will [ELSE] get first attached (uploaded) image. Theoretically: [IF exists] <img ...
2
votes
1answer
105 views

All my inserted images gets a link to the full image even if it is already full size image

So when I create a new post and I upload an image onto the my server. Normally depending on the size of the image you can select small, medium, large image to place inside the post. On other sites ...
0
votes
2answers
4k views

Page speed error: “serve scaled images”

I made a test on GTmetrix.com and I got a pretty bad grade regarding the Page Speed (D or F). The worse error is the following: Serve scaled images (grade F): some image URL is resized in HTML or ...
0
votes
1answer
1k views

How do I get the URL of only the first picture in a Wordpress post?

How do I get the URL of only the first picture in a Wordpress post? I don't want the URL of the thumbnail, but the first picture in the post loop. I only need the URL for linking purposes. Thanks for ...