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)

1
vote
1answer
395 views

Related posts with images

I need to show the thumbnail size images (not featured thumbnail) from the posts on the "related posts", code below: Thumbnail size (the images you insert into the posts from Media library) -vs- ...
2
votes
1answer
414 views

Adding a querystring to an image URL when clicking 'insert into post'?

I have written a plugin which does some fancy stuff with GD lib when you upload an image. Everything is working fine, however I need to get the image title and add it to the image URL (and file name ...
0
votes
2answers
1k views

Is there a way to insert multiple images into a post at the same time without using a gallery?

I'm trying to find a way to add multiple images to a blog post in wordpress at the same time. I want to be able to write text above and blow the images, just like a normal blog post. It takes a lot of ...
1
vote
1answer
133 views

media_sideload_image with rewritten urls?

When I try to use media_sideload_image with a path like this http://placekitten.com/300/200, it gives me an error. That is because it don't know the filetype or the filename. Best way to upload the ...
2
votes
1answer
312 views

query attachments of parent page if attachments of current page are smaller than …

I'm using WPQuery and get_children($query_images_args) to query attachments from the current page. If the current page has no attachments assigned I'm querying the images of the parent page. This ...
5
votes
3answers
670 views

Using Images in Wordpress - Best Practices

I'm not a novice to Wordpress Theme Design & Development. I've actually been doing it for a few years now and in recent years, it has become more than a hobby and is slowing shaping into a career ...
1
vote
1answer
2k views

help getting featured image using get_posts

I am using a homepage sorter to arrange the posts on the front page of my site because of that, I am getting the posts in this manner so that I can call each post individually instead of in a foreach ...
1
vote
1answer
88 views

Making images in posts link to the image file rather than the attachment page

So I've got a bunch of content with images inserted into them. The users inserting content have done the default option of linking to the attachment page which isn't great. I've altered the ...
1
vote
0answers
64 views

NextGEN Gallery- using shortcode for different galleries on different pages [duplicate]

Possible Duplicate: conditional shortcode not working I have a salon website with a gallery page wherein the user must first select a stylist prior to viewing their individual gallery. I ...
2
votes
1answer
73 views

Query for recent images across multiple posts

I'm a bit fresh to wordpress theme development (and PHP in general), and I'm curious if there is a way to query XX number of recent images, likely spanning across multiple posts. Basically I want to ...
0
votes
1answer
334 views

Attachment Image using wrong src?

I've had some issues recently with this code below to display the featured image of a page: add_theme_support( 'post-thumbnails' ); add_image_size("homepageFeatured", 250, 250, false); ...
2
votes
1answer
3k views

How to add a media with PHP

I have more than 1000 pictures on my webserver, uploaded with FTP in a local folder ( /home/chris/pictures ) Is there a way to add them as a well known media to wordpress in PHP and get their id? ...
2
votes
1answer
963 views

query attachment images … if no attachments -> get attachments of parent page?

I use this to query all attachments of the current page or post I'm on … $query_images_args = array( 'post_type' => 'attachment', 'post_mime_type' =>'image', 'post_status' => ...
1
vote
1answer
9k views

get images attached to post

I want to have the ability to use pictures from the media library in a jquery slider on the home page so that it's easy for someone else to update the pictures without having to hardcode it. I have ...
1
vote
4answers
1k 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 ...
0
votes
1answer
1k views

WP_Query: attachment image in “full” size?

I'm using the following script for my current project. $query_images_args = array( 'post_type' => 'attachment', 'post_mime_type' =>'image', 'post_status' => 'inherit', ...
0
votes
4answers
516 views

Slider/text combination plugin

I think I may have painted myself into a corner. I need to find a plugin, if such a thing exists, that will be a slider/text combo. My client loves the way the pics on this page slide up to show some ...
1
vote
0answers
208 views

Retrieve/get current image from Nextgen gallery db [closed]

I thought that I can do it using the database where the idea was to get the image from the ngg_gallery_pictures table, where the browser URL is equal to URL of the image in the table. Then I will get ...
0
votes
2answers
331 views

Wordpress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?

I wonder if Wordpress is the best CMS or solution for what I wannt to do? I need to find some way to upload images to a post that I can loop as background images. Just like I can upload multiple ...
0
votes
1answer
322 views

Problem uploading images

Multisite 3.4.1 wordpress I redirected wp-admin with htaccess rules, and renamed wp-content and plugins with via wp-config http://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content now I can ...
1
vote
0answers
116 views

Exclude image titles from search results

I would like to exclude image titles from search results. For instance, if I have an image called image-wikipedia.jpg, right now, if I search for Wikipedia the story that uses that image is returned ...
3
votes
2answers
263 views

There's a way to scale media (images) at 50%?

I wonder if there is a way to scale down uploaded media exactly to 50%. From what I see, with add_image_size you can only specify a width and a height in pixel. The idea is to upload high resolution ...
0
votes
1answer
108 views

Photos automatically uploaded to Media Library

Here's a bizarre one for you guys. I was using Search RegEx to remove Blogger html formatting that was screwing up my imported posts. Images hadn't been imported, so they were loading from Blogger ...
2
votes
2answers
2k views

How to register images uploaded via FTP in media library?

I'm using my own upload.php file to upload images to: $upload_dir = wp_upload_dir(); $targetDir = $upload_dir['path'].'/'; It works like it should with this exception that images uploaded to ...
2
votes
2answers
2k views

Replace image attributes for lazyload plugin (data-src)

I want to apply jquery lazyload plugin. For this to work I have to create a new attribute which is data-src place there the src value and then replace the src value with a specific value ...
0
votes
1answer
96 views

Any plugins that upload, resize, and display images? [closed]

Here is an ideal workflow for my situation: Upload a folder full of images Resize images according to a specified size Have the ability to organize these images into folders (collection1, ...
0
votes
3answers
1k views

Get single image from custom fields made with WCK custom fields creator

I used WCK Custom Fields Creator to create a repeatable custom field for uploading pairs of images (one color, one black and white) to posts. So for example, one post may have three fields, with two ...
1
vote
1answer
82 views

Can I get the ID of an inserted / linked image?

I am using this code to get the url of first inserted image in a post. Is there any way I can get the ID of that image. global $post, $posts; $first_img = ''; ob_start(); ...
-1
votes
1answer
1k views

Theme using masonry layout script rendering overlaped images in Google Chrome [closed]

I have a WordPress theme built with Masonry script , I added a new template file for list gallery, is working ok in FF and IE but in Google Chrome gallery images (inside containers) are overlapped. ...
0
votes
1answer
368 views

How to Create a Frontend Html-list Editable in the Backend?

I would like to add a feature to a page to display a short list of people, like the one seen here. I have done this on other sites by styling lists with css. This time however, it's for a client and ...
6
votes
3answers
8k 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' ...
0
votes
2answers
3k views

Using Jetpack carousel w/o creating a gallery [closed]

I want to use the Jetpack Carousel for all my posts without editing all of them. Is there a way to show pictures in the carousel even if they're not in a gallery?
-2
votes
1answer
313 views

Front end post or photo or both

I need a help in correcting my code that can front end post or attach image or post&attach image ;) Now I can send a 'post' and 'post with photo' but can't send just a photo, How can I do that? ...
0
votes
2answers
198 views

How to check for images before echo

I have the following code in attempt to check for an image before an echo. The reason for doing so is if there is no image it won't echo anything and there won't be a missing image link put in a post ...
0
votes
1answer
164 views

Aviary + Wordpress Media

has anyone tried to implement Aviary API and wordpress successfully? I am looking for a tutorial or guide of some sort.
1
vote
1answer
217 views

Custom image size not selectable in uploader

I want to add a custom image size for each image, that is uploaded into posts (via the uploader). I found code-examples on several websites, but somehow they just don't work for me. This is (the ...
0
votes
1answer
47 views

Link listings with image

So I'm really new to Wordpress and I'm trying to create a simple widget. I want the widget to list the logos of my site's affiliates (similar to the "check out our shows" section on ...
11
votes
8answers
21k 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
3answers
801 views

Gallery post images on homepage?

I have a post with image gallery, it has 10 images. Can I get the direct link to the images in the post, so that I can display first 5 images on the homepage?
1
vote
1answer
232 views

Image resize depending on orientation?

is there an option or a plugin that resizes an image depending on it's orientation? Reason for this question: Im building an image grid and it would look even better when all images would have the ...
4
votes
1answer
8k views

get attachment title based on attachment id

I'm getting an image through getMeta. It returns me the id of the attachment. Now I want to get the titel, alternative text, description and so on. For the alternative text this works very well: ...
-1
votes
2answers
155 views

How should I force WordPress to give proper name for the uploading images?

How can I force WordPress to give a proper file name for images like "http://www.mysite.com/wp-content/uploads/2012/07/mona_lisa_painting.jpg" instead of ...
0
votes
1answer
66 views

Allow authors to create article image

I want to allow contributors to upload images while creating posts. But the catch is, I am building the post display pages out of my own custom PHP. Every article written will follow the same ...
0
votes
1answer
2k views

wp get attachment image always gives me thumbnail

I have an image which should be output on the page. The space is limited (width-max = 209px). Now I have to provide the image in a scaled size, if the user doesn't do it. This is my code: $src = ...
0
votes
1answer
414 views

Autogenerated Thumbnail compression depending on size

This is a follow up to this question, in witch the jpg compression is altered depending on what WP's built-in image resulting image size returns. While it may work for most of the people, i'm looking ...
0
votes
1answer
363 views

Failed to load resource:404 image

website is http://pleevi.com. when i look on the problems with the website, i get this. http://i.imgur.com/aHQky.png here is the entire list of what i get as i cannot post more than 2 hyper links :( ...
6
votes
1answer
866 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 ...
0
votes
1answer
885 views

What is the plugin to import image from URL?

How can i import image from specific URL to image gallery in Wordpress so that i can use it as a thumbnail for post? I search for a plugin.
0
votes
2answers
450 views

get_image_tag() html output : empty src attribute

I'm trying to use the get_image_tag() function to alter the html output of an image, like so : add_filter('get_image_tag', 'kh_image_attachment', 10, 5); function kh_image_attachment($html, $id, ...
3
votes
1answer
2k views

Using Advanced Custom Fields with Wordpress and Lightbox

I am using the ACF Plugin. I want to have a field where I can upload an image, and the result will display the full image in the Lightbox and then then full image will be resized into a thumbnail from ...