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
8
votes
3answers
3k views
How can I make add_image_size() crop from the top?
I have a series of posts, all with featured images, but I need to be able to customise the crop top right corner. In this instance, I need them to be cropped from top right, but it would be useful to ...
21
votes
8answers
4k views
User-friendly cropping of post thumbnails?
Is there a way to let my users define the crop area of a post thumbnail? The thumbnails always are existing post attachments, I would rather not create an extra attachment per thumbnail.
The post ...
15
votes
8answers
5k views
Restricting Users to View Only Media Library Items They Have Uploaded?
I want users to be able to upload photos using add_cap('upload_files') but in their profile page, the Media Library shows every image that's been uploaded. How can I filter that so that they can only ...
10
votes
5answers
2k views
Resizing images to the actual size used in the editor?
Is there a way to resize images to the actual size they will be shown in the post? I have users that import a large image and then resize it in the visual editor. This is easy, since they can just ...
27
votes
3answers
31k views
How can I add an image upload field directly to a custom write panel?
I've added a new page under "Pages" in the wordpress admin, and added several custom fields. I'd also like to be able to add an upload image field to the page editor - is there some way to do this via ...
-2
votes
2answers
1k views
How can I make all gallery images to open in a new window?
How can I make all gallery images to open the high resolution image in a new window?
12
votes
2answers
4k views
Creating an Image-Centric Custom Post Type?
Does anyone have any tips for creating an image-centric custom post type?
To elaborate, my blog has rotating header images, shown below:
The two images in the top left are randomized, and exist as ...
19
votes
4answers
10k views
Filter to remove image dimension attributes?
I'm working on a site based on a fluid width css template which sets a max-width on images to the width of the column containing them, and I need to remove the inline width and height dimension ...
0
votes
3answers
2k views
Applying automatic link class to images embedded to posts
I'd really love to be able to conditionally apply a CSS class to link elements of images embedded into posts, but I can't seem to figure this one out.
Basically what I'd like to achieve is to replace ...
0
votes
1answer
306 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 ...
10
votes
2answers
13k views
How To Retrieve An Image Attachment's Alt Text?
I am using an attachment.php file to show large versions of images that have been clicked on elsewhere. I'd like to pull the image alt text as a caption under the image with javascript, but the alt ...
8
votes
5answers
816 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 ...
3
votes
2answers
2k views
Getting post-thumbnails from another WP site
I have two WordPress installations, one at http://inversekarma.in and the other at http://inversekarma.in/photos. The latter is a photoblog, and its theme uses the standard WP post thumbnails (EDIT: ...
0
votes
2answers
2k views
Automatically wrap post image in div
In regards to image attachments inserted into a post, I would like to wrap the img tag inside a div tag for specific design purpose.
Is there a way to do this automatically after attaching the image ...
0
votes
2answers
826 views
how to grab first link in post… and of course call it
I have been trying to get the answer to this for ages now and wondered if anyone here could help. I would like to 'grab' the first link in a post and attach it to a button/image. I have tried the ...
5
votes
1answer
743 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 ...
3
votes
4answers
5k views
Displaying images from external RSS feeds?
Is there any way to show an image for RSS feeds in my WordPress page? Currently the default WordPress RSS feeds will only show the text of feeds from other sites. How can I make my site show a ...
1
vote
1answer
275 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 ...
5
votes
5answers
762 views
Upload images to remote server
I am using Wordpress media uploader to upload images and I was wondering if there is a way to make it upload to my remote server instead of my local server? Example: My wordpress blog is hosted on ...
3
votes
3answers
4k views
Stop wordpress from hardcoding img width and height attributes
I'm wondering if there's a simple way top stop WordPress automatically hardcoding featured image height and width attributes, other than using regex...
As I'm using a flexible grid for my project ...
3
votes
3answers
2k views
Resizing all images
I have just changed the theme on my blog, and because of a small page width, it breaks the layout. Most of my earlier images (attached in posts) are around 600px in width, and now I need to resize all ...
4
votes
5answers
4k views
Disable image attachment links
Is there a way to disable image attachment links trought a filter in functions.php or something ? I know it's possible to do it manually when you add an image to a post but I want to disable this ...
3
votes
3answers
1k views
Automatically Import Image into Posts from URLs on the Web?
Is there a way for me to add an <img> tag in a Post, but then have a plugin download that image, and put it on the server for me instead of me needing to manually download the file from online ...
6
votes
1answer
334 views
Changing JPEG compression depending on image size
Short. I want ''large' images compressed by 90%, and 'medium' to be by 60%. Has many af you know, sometimes larger images suffer from high compression, but other small images don't.
This function ...
4
votes
2answers
627 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 ...
0
votes
1answer
695 views
How to display a shortcode caption somewhere other than the_content
I want to disable shortcode captions for posts in one of my themes, and display the content elsewhere, such as in a sidebar.
The images aren't uploaded to wordpress, but they're linked-to using the ...
5
votes
1answer
907 views
Delete the original big size image after upload and leave only 3 images crunched by media gallery
I need to know is it possible to somehow erase the original image uploaded via Gravity form : post image - post field?! With the situation now I receive 4 images. 1 original (can be whatever user has ...
2
votes
3answers
1k views
Get first image in a post
I am using this code directly from the codex.
function echo_first_image ($postID)
{
$args = array(
'numberposts' => 1,
'order'=> 'ASC',
'post_mime_type' ...
2
votes
2answers
728 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.
1
vote
1answer
330 views
Caption in Page adding unwanted 10px to width
I'm trying to create an image with a caption in a Page I'm working with. In the image options, I have it aligned right, with an image width of 220. Without the caption I have no problems, however with ...
1
vote
9answers
329 views
Graphing libraries for WordPress [closed]
I had asked question like this long ago at WPTavern and it fizzled. Hope it fares better this time. :)
Drawing graphs can be done with multiple methods (generating image files, JS, Flash) and there ...
0
votes
1answer
202 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 ...
2
votes
1answer
217 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" ...
2
votes
3answers
1k 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 ...
1
vote
1answer
572 views
Media > Image Sizes aren't being applied to uploads
Under Media Settings I edited the Image Sizes to the following:
Thumbnail size: 170x80
Medium size: 550x170
Large size: 550x320
("Crop thumbnails to exact dimensions" is checked)
Maximum embed size: ...
0
votes
0answers
86 views
Facebook. Fetch user photos and post them to blog on the user side [closed]
So I'm looking for some plugin or solution to implement such function. Fetch facebook photos (using json I guess) and post them to the blog.
0
votes
0answers
180 views
Upload image path wrong [closed]
I have a wordpress site and users can login and add content. When users upload images from the front side images are stored in wp-content/uploads/2012/09/bla.jpg. Everything correct.
But when I open ...
0
votes
3answers
1k views
Change Attachment Post URLs to File URLs
I have a client with a very image heavy blog. Every time they upload images in their posts they are using the Attachment Post URL for the link instead of the File URL. The problem with this is that ...
0
votes
1answer
266 views
Is it possible to modify default image name suffix?
So that, I tried this technique - Modify Default Image Name Suffix but it doesn't work as I need, I have all the images loaded, and I need to regenerate them. And what about the recovery of the ...
-2
votes
1answer
55 views
How can we see which posts don't have a featured image or it doesn't exist anymore?
Which plugin or code I need to make it show me a list with the posts that don't have featured image or is broken(the featured image doesn't exist anymore)?
6
votes
1answer
3k views
Adding Category/Tag/Taxonomy Support to Images/Media
I've been trying to add category, tag, or custom taxonomy support to images (or all media, though I'm only concerned with Images). I've got it part-way figured out with:
add_action('init', ...
7
votes
2answers
3k views
How does WP media uploader create the 3 different sized images, and how can I duplicate it
I have finally!! got this thing I've tried about 12 times to make and 12 different ways, but finally got it to work,... sort of.
I made a custom metabox for uploading and attaching images to posts, ...
3
votes
1answer
300 views
Set JPEG compression for specific custom image sizes
I use various custom image sizes (by add_image_size) and I have set my JPEG compression to 30% with this filter:
function jpeg_quality_callback($arg) {
return (int)30;
}
add_filter('jpeg_quality', ...
2
votes
1answer
3k views
Wordpress Image Editor not working - conflict?
I am having a strange issue with the built in wordpress image editor. I have no problem uploading files or preforming any other media functions. The only thing I seem to be unable to do is utilize the ...
4
votes
1answer
2k views
Removing Image and Caption Dimension Attributes
This question is an offshoot from the this discussion on removing dimension attributes from images. The solution code provided on that thread works very well except that it has the unfortunate side ...
2
votes
1answer
2k views
How can I determine if a post has an image attachment?
As far as I know, there's not a simple function that will return true if a post has an attachment. With that in mind, what's the best way to determine if a post has an attachment (or even better, has ...
3
votes
1answer
2k views
remove links from images using functions.php
I am looking for a way to remove the attachment link from images in the post content.
I would like to add this to the functions.php in my theme. I know you can disable this in the post on a per ...
2
votes
1answer
331 views
Rename image uploads with width in filename
I am attempting to change the name format that Wordpress uses to rename uploaded files. For example, when I upload an image with filename "cat-picture.jpg" Wordpress will create scaled versions and ...
2
votes
1answer
1k views
Programatically creating image attachments from local URLs and setting featured image
I'm currently working on importing an MovableType blog into WordPress. The blog has several thousand posts, and each post has an image associated with it.
The export file contains references to each ...
4
votes
1answer
350 views
Auto-modifying original [full size] images
Is there a way to make WordPress process Full size images, which by default it leaves unmodified?