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
53 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
45 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
52 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
55 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
425 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
119 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
18 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
24 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
73 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
52 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
26 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
68 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
46 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
602 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
27 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
807 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
29 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
145 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
47 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
106 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
138 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
60 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
48 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
67 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
41 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 ...
0
votes
1answer
76 views

Adding title and description to subpage's featured image

Hej! I have a subpage to display it's subpage featured image. I would like to add the title and description to beneath the thumbnail. Today my code look like this > In the functions.php function ...
0
votes
1answer
36 views

Setting name of attachment URL

I have a problem I need to fix with the URLs that are generated for the attachment pages of images with metadata. I’m working on a photography site where individual photos are displayed as ...
1
vote
0answers
38 views

Scaling an image in a WordPress post

I am currently building a WordPress theme and when I add an image using the add media button, I'm able to choose a scaling percentage to allow the image to get bigger or smaller within the modal pop ...
6
votes
4answers
296 views

Add image size if page template

I'm building a members website with WordPress Multisite. Is it possible to restrict how many images are being generated depending on the selected template? I have tried the following lines of code ...
0
votes
3answers
2k views

How can I get a different image size, if all I have is the link?

For various reasons, I can't use Wordpress' built-in Thumbnail functionality. What I want to do instead is to use the first image in the post as the thumbnail. Here's what I found in the codex: Show ...
0
votes
0answers
22 views

Defined image size not being used when dynamically loading images

I'm using an add_image_size(); of 70x70, in a custom theme. During an ajax request I load a template_part(); with the defined image size, locally all of these images load fine and at the correct ...
3
votes
1answer
132 views

Replace all of post's image URLs with upload directory URLs

On a WordPress website for a client, he's going to be posting articles with quite a lot of images in. When the post is saved/published, we need to be able to download/save these images to the server, ...
0
votes
0answers
36 views

Why are my 'medium' images the wrong size

In my media settings I have: Thumbnail size 131 x 87 Crop thumbnail to exact dimensions: yes Medium size 260 x 1000 Large size 560 x 800 But the_post_thumbnail('medium') outputs an ...
4
votes
2answers
799 views

Cropped featured image replaces original image in gallery

Firstly, I have done my research as thoroughly as I possibly can. Searches have been made, but I have not found any advice or solution as to my exact issue. Ok, time to explain. Currently I am ...
1
vote
0answers
41 views

Retrieving Meta from Image Attachment

I currently have added a meta box to the media library popup using the following: // ADD CUSTOM INFO INSIDE THE MEDIA LIBRARY function AddLibraryFields( $form_fields, $post ) { ...
0
votes
1answer
34 views

Images getting corrupt automatically

I had switched theme of my blog, but when i opend my blog i saw there that thumbnail of posts( featured image) are not showing up. I moved to my old theme back but images are still corrupt showing. ...
0
votes
1answer
165 views

PHP code to call image Caption, Alternative Text, and Decription?

Is there a Wordpress PHP code to call an image Caption, Alternative Text, and Decription? I have several images with Titles, captions, alt text and Description fields filled and would like to display ...
0
votes
0answers
37 views

Theme Customizer uploads image size issue

I've made an option to allow users to upload a custom background image to their site using the Customize theme section of wordpress but I'm having trouble uploading large (in pixels) images. An image ...
0
votes
1answer
36 views

How can I hide previous_image_link() on first attachment page?

I'm using previous_image_link() and next_image_link() to show thumbnails in my image.php template page. I'm surrounding the thumbs with some styling, so need to be able to hide the whole previous ...
0
votes
0answers
46 views

Fetch and display Image stream

I would like to show on my website some images on a map. I.e. the user uploads an image and fills in his/her address. Then he/she can see his image on a google map when panning to the address they ...
6
votes
3answers
9k views

How do I get the avatar URL instead of an HTML IMG tag when using get_avatar?

I'm using a plugin called Simple Local Avatars which lets me upload author images which are stored on my server locally (no Gravatar). The plugin works fine and get_avatar returns the local avatar. ...
0
votes
0answers
35 views

How to Display HTML Site Images in Directory Above WordPress Installation

I have WP in a subdirectory of its own. I have two .htaccess files. The first is in the domain root: RewriteEngine on RewriteCond %{HTTP_HOST} ^automaticallynow\.com$ [OR] RewriteCond %{HTTP_HOST} ...
0
votes
0answers
42 views

thickbox to WordPress theme not working for front end user picture uploading

I use this piece of code in "WP-Member" plugin for profile picture, it is working fine but there is a problem. If I try to change the user avatar from front end, TB_iframe is not popping up, it is ...
3
votes
4answers
2k views

What's the proper way to find and remove duplicate images from posts and the media library?

I just exported a largish WP blog from MediaTemple to PHPFog. I used the standard WordPress export and import plugins. For some unknown reason all of my media assets have been duplicated. I now have ...