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)

2
votes
1answer
48 views

Confused about image sizing business in Wordpress

I'm creating my first Wordpress theme and I've got everything working fine, and by following this tutorial and few others I've understood how to add custom image sizes by using add_image_size() ...
1
vote
1answer
30 views

Post taxonomy from exif data

Whenever I post a post with a featured image, I want to extract the exif data from that image and attach it as a term for a taxonomy. I already got a plugin which can extract the relevant info, but I ...
1
vote
1answer
2k views

How to add a random image to a post from gallery and only show one?

How to add a random image to a post from gallery and only show one? I know how to add an image and a gallery. I need to have one image from the galley show on the page at random each time the page is ...
0
votes
0answers
29 views

Alter any uploaded image BEFORE saving (apply blur or similar even on the original version)

I am looking for a way to add a blur effect or similiar to any saved image. I do not want to have the unaltered originals on my server. The reason is that I am sued for using a copyrighted image ...
1
vote
0answers
108 views

Pulling Post Image Attachments in WordPress 3.9

For some reason the functions I'm using for pulling post images/attachments isn't working after updating to 3.9, has something changed in the way we pull attachments? The code I'm using in single.php ...
0
votes
1answer
80 views

How do I embed youtube video via url in frontend posting

I would like to embed videos & images by entering url in my wordpress site. In WordPress repsitory there are many plugins for embed video by url but in my site I want to enable this functionality ...
0
votes
1answer
112 views

Apply nextgen-gallery lightbox effect

I wrote a Template which uses custom-fields via WP-MoreFields plugin. And there I add an image. In my template I display that Image like this: <? echo wp_get_attachment_image( get_post_meta( ...
0
votes
2answers
52 views

Resize images in batch

I want to resize images on server, I have more than 7000 images in library of my WordPress site. I want to resize all images on server itself. I know that regenerate thumbnails plugin can be used, but ...
0
votes
0answers
12 views

Default image (logo) for customizer [duplicate]

I want to let users upload a logo. I've tried a few things. Currently there is a broken image until a logo is uploaded. I need to set the default as logo.png in my theme folder. Here's how it stands ...
6
votes
2answers
8k views

WordPress Theme Preview Image

I'm developing a custom WordPress theme. When I go to select themes in the Appearance menu, my theme does not have a preview image. Is there something I need to do to get a preview image to show up? I ...
0
votes
2answers
277 views

How can I add inline CSS for each image?

Is there a filter or hook that I can use for uploaded media? I need to use it for custom CSS properties based on the media's description. It will be like: <img src="image_url" style="width: ...
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.
1
vote
2answers
41 views

Editing image dimension - to edit the main image file

When started blogging, I was not aware about the image file's size, and used a lot wider and sharper images without necessity, some of the files are even 5-7mb in size. As there's no such necessity to ...
0
votes
0answers
27 views

Display images uploaded to post on the post edit screen

Does anyone know if it is possible to display an image which has been associated with a post on the post edit page without clicking on the media gallery and selecting the drop down option 'uploaded to ...
0
votes
0answers
33 views

Upload in Media Library only shows a part of the picture (incomplete upload)

I have a wordpress application wherein I uploaded a picture using the media library. Unfortunately, my problem is that my picture is only uploaded half-way. My connection is fast. Can you give me tips ...
1
vote
1answer
37 views

User-uploaded images without an account

What are folks doing in the way of allowing users to upload images, but not have an account in order to perform the upload? So I'm user Bill, and I come to your website. You're having a contest for ...
-1
votes
1answer
105 views

wp_handle_upload Image sizes

What's the simplest way of getting wp_handle_upload To either change the size of the image it is uploading, or to get WordPress to generate the 3 sized images like it does in "crunching" when adding ...
0
votes
2answers
178 views

Permanently remove first image from posts

I have around 2,500+ posts on my site where I've inserted images using the traditional method into the post content itself. In upgrading to a different theme, the single post page now displays the ...
0
votes
1answer
25 views

Assign one featured image to multiple posts?

I have implemented a front-end form to submit posts. The image upload is handled with the Wordpress Media Library Users click on "Upload Image" Media Library opens Users either select an existing ...
0
votes
1answer
59 views

Trying to set specific image dimensions and crop with ACF

My question is about image sizing. I get how to the sizing/cropping stuff natively in WP add_image_size( 'thumb-crazy', 500,500, true); And then in the template type: if ( has_post_thumbnail() ) { ...
0
votes
0answers
22 views

Some images don't get linked when setting link-to to media-image

When inserting images into posts I have some images which refuse to recognize their link-to setting. The setting is properly saved and I also tried switching to a none setting and back, but with no ...
0
votes
1answer
52 views

Automatically add image caption with values from a post parent field?

i have a custom dropdown field on post and i would to get the value from that custom field and insert it on each image caption field uploaded to the current post. I have been looking for a way to do ...
0
votes
1answer
53 views

Changing logo image in header.php upon language detection

So i'm designing a website that will feature the Polylang plugin for automatic language detection, but I've run into a bit of a wall with the logo image. It resides in header.php, but I can't think of ...
0
votes
1answer
63 views

get_post_custom: get image URL instead of image ID

I know the value of a image custom field will give me the attachemnt ID. In a loop over all custom fields, how can I found out if the field is an image? And then get the image URL of the attachemnt? ...
0
votes
0answers
28 views

Image upload with one size going into a custom directory

I have added several sizes with add_image_size( 'x', y, z );. All those sizes are saved to the uploads directory, which is alright. if ( function_exists( 'add_theme_support' ) ) { add_theme_support( ...
0
votes
1answer
540 views

Multiple images with Media Uploader on front-end

I'm trying to implement a multiple image upload on a frontend form, using the built-in Wordpress Media Uploader. I managed to have a single image upload, but I can't find out how to have multiple ...
0
votes
1answer
127 views

Random background image showing on website per click/load

Without using a plugin I would like to have a big background image changing on every click/load (or later on maybe every hour). So, I created a random_img.php file and put some code into header.php. ...
0
votes
0answers
20 views

Apply cropping to custom size from media library

I want to be able to apply a specific crop to the medium size or any other custom image size i define. I want to control the crop as it is controlled in the media library for the thumbnail. I want to ...
0
votes
1answer
29 views

How to change the target size of images clicked on in Wordpress standard gallery

I want to use the standard Wordpress gallery without using other plugins and stick to the gallery shortcode. So, I know I can change the size of the thumbnails, that are shown in the gallery grid with ...
0
votes
1answer
78 views

How to get cropped thumbnail source for custom post type

I need thumbnail image url with size 148*148px. I using custom post type for testimonials. I need just the image source like http://example.com/demoimage.jpg. It is possible to get cropped image ...
1
vote
1answer
58 views

Can I use images as anchor tags with <?php previous_post(); ?><?php next_post(); ?>

Rather than displaying the title of the next page, I would like to display a large arrow that can be clicked on. To do this I shall either be using image files, or the tag. Can this be done?
1
vote
0answers
29 views

Add suffix to uploaded images

I found this post what handles in a similar way my intention. But I´m not 100% sure how to expand the callback function with my options. So here my suit: I add an function to the functions.php to ...
0
votes
0answers
79 views

How to make image proportional bigger?

I'm trying to make my slider images bigger but it doesn't work. I want them to be proportionally bigger and with width:100% they look funny. It's fine if the image get cut and doesn't show the whole ...
2
votes
1answer
100 views

Converting Attachment to Images?

I've had no problem using lightboxes before with attachment images, but I've switched to a new theme called Quicknote and it seems that attachment images now instead link to the attachment page. ...
0
votes
0answers
52 views

Prevent WordPress from using resized/compressed versions of uploaded images

I am uploading an .jpg image to a page and selecting 'Full Size - 800 x 381' under 'ATTACHMENT DISPLAY SETTINGS'. However, when previewing the page I look at the source code and I see after the image ...
0
votes
0answers
20 views

Get File with WP Multisite Problem

I have a problem with Multisite, as we all know multisite with sub directories looks like this "www.example.com/site1" etc. I am using a custom script linked with foobox that when someone clicks on ...
1
vote
4answers
617 views

offload media to external services

Does anyone know a way (plugins or similar) to offload media (images mostly) in wordpress to an external service? like flicker, or imageshak? I think that offloading images from the wordpress ...
1
vote
0answers
28 views

t5-fresh-editor-stylesheets.php breaks image placement in WP Beta 3 editor

I am running a development site with the WordPress beta plugin, currently running 3.9 beta 3 I am using Bill Erickson's Core functionality plugin which calls Toscho's t5-fresh-editor-stylesheets.php ...
3
votes
1answer
857 views

Bulk edit wordpress images alt and title attributes

I uploaded around 600 pictures in different galleries in wordpress without setting the titles and alt attributes. I need to edit them, I was wondering a way to edit them by album, let's say the title ...
0
votes
1answer
30 views

Display a different image for each page with editor

We have several PAGES (about us, contact, services, etc...) On each page, we have an area for an IMAGE. The IMAGE is located in the same location on each page. (lower right corner > above the ...
1
vote
1answer
169 views

wp_get_attachment_image_src() width and height boolean

I have the following code in my theme: <?php $size = 'large'; $postimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), $size ); $url = $postimage[0]; $h = $postimage[2] ...
0
votes
0answers
49 views

Missing Images in Uploads Directory (Server Only)

I recently moved a WP install from our dev server to the clients server. Everything went fine, however, the site is missing a large amount of images. The dev site has the images in the Wordpress ...
1
vote
1answer
112 views

All links to images are broken in a subdomain multi site environment

I've just installed a fresh copy of Wordpress 3.8.1, and then enabled the network feature using sub-domains. In cPanel, I have the wildcard sub-domain pointing to the Wordpress folder, and Wordpress ...
1
vote
1answer
180 views

Return Attachments from Custom Post Type

I'm a fairly new WP developer. I am trying to get my portfolio.php to display all images attached to my custom post type 'portfolio', and then display them in a masonry format. I've managed to get ...
1
vote
1answer
61 views

Can't seem to attach uploaded image to post and set it as thumbnail

I'm using this code to submit a post form and upload an image which I want as the post thumbnail. Everything submits perfectly and the image even uploads but I can't seem to figure out how to attach ...
0
votes
1answer
49 views

Only User Upload image Http Error

I've search all over and tried a bunch of things. Basically, as admin I can use the featured image and upload with no issues. When i switch roles I cannot upload images, i get an HTTP error. I did ...
2
votes
2answers
2k views

How can I hide media library images from general users?

As an admin I really like the features and functionality of the WordPress 3.5 media manager. With a multi-user site however all users can see all images in the media library - whether uploaded by ...
1
vote
1answer
15 views

Wrapping images in tags based on size

I am making a site for a client where all the thumbnails on a page need to be styled differently than regular sized images. Right now I have a snippet of code I found that allows me to wrap every ...
0
votes
0answers
71 views

SQL query to remove first image in all posts

I've built a site up over a few years (3,500+ posts) where I've inserted images using the traditional method into the post content itself. I'm now moving to a different theme, and have made the first ...
1
vote
0answers
42 views

How to compress thumbnail images of two different sizes?

I'm new to wordpress and so far with a limited knowledge of PHP, I was able to build up a theme from scratch. I removed the compression for my homepage images for a better quality of pics. Now, the ...