Articles of images

WordPress Rotating Background Images

I would like to be able to create a rotating background image that resizes with the browser window. I would like to also be able to set a certain amount of images to rotate per page or at the least start at a random number. Here is an example > http://www.theme-dutch.com/presents/screen/ Is there a plugin […]

Right click&copy images: protection

I saw there’s a WordPress plugin that prevents people from using right click on text or images, called WP Protect. I was wondering if there’s a way to hardcode it into WordPress instead of using a plugin. What I’m worried about is mainly the images. Being able to mark text is perfectly fine with me. […]

Display post image in a size defined by add_image_size()

As I already used the featured image for something else, I want to add another image and display it in one of the sizes defined in my functions.php with add_image_size(). I know how to do that with a featured image : I just have to use the_post_thumbnail() function and indicate the size I want in […]

Howto use WP built in Thickbox for images?

I’ve been searching for a better way to utilize the built in Thickbox function for images. I’ve been using my method for a few months, but I don’t think it’s the best way to do it. Here is the code I’ve been using (I don’t remember where I found the code or I’d link to […]

Cache DB queries result

On my new site i am displaying most of the images instead of text. I show images for recently written, recently viewed, mostly viewed posts etc. I found that in 40% of cases posts are same. so i need not to hit the DB to extract the image. It can save number of hits to […]

Photo Gallery Plugin and Touch Devices

I am looking for a decent plugin that will display a slide show of images that are hosted on Flickr. I have tried Slickr Flickr and and Flickr+Highslide (but that one seems to be missing from the WP plugins directory right now). The issue I have with those two is they do not display the […]

How to hide image-url if no attachment?

How can I hide the img-tag if there is no attacment? (function is from this tutorial: http://wp.tutsplus.com/tutorials/automagic-post-thumbnails-image-management/) <img src=”<?php get_attachment_picture();?>” /> I need something like this: <?php if ( get_attachment_picture()) { ?> <img src=”<?php get_attachment_picture();?>”> <?php } else { ?> show nothing, not even av default image <?php } ?> Here is the function I […]

Get thumbnail URL :)

I try to get thumbnail URL correctly… In my functions.php, I have theses lines: <?php add_theme_support( ‘post-thumbnails’ ); set_post_thumbnail_size( ’emphasis’, 132, 82, true ); ?> <?php function w_thumbnail_src() { if (has_post_thumbnail()) { $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), ’emphasis’); echo $thumb[0]; // thumbnail url } } ?> The thing is, I don’t get the correct size in my […]

Image crop, resize and compression plugin?

I’ve been looking through the plugins to find one that will allow the user to resize & crop images within WP. This has been the one area that clients struggle with – mainly those who don’t have any photo editing software on their computers. Also, if there’s one that deals with some kind of image […]

Convert attachment ID into url?

I’m using the plugin advanced custom fields to create custom fields to create a relationship between two pages. The code below is looking at the relationship field and grabbing the page title and company logo of the linked page. The only problem is that instead of outputting the image url (so it displays the image), […]