Articles of images

How to show large image in checkout page using WP Ecommerce plugin

I want to show large image in checkout page right now it showing 31×31 size image in wpsc-shopping_cart_page and using <img src=”<?php echo wpsc_cart_item_image(); ?> to call thumbnail image. what should i do for that?

Styling images coming from another blog

I had asked a question earlier, on getting post-thumbnails from another WP-site. There, the awesome Mike coded a SQL query whose results are then passes on to a PHP array. The piece of code from that answer that I want to modify is this. $post_urls = $wpdb->get_col($sql); if (is_array($post_urls)) echo implode(“\n”,$post_urls); Now the array holds […]

How to wrap every image in a post with a div?

When I add an image to a post I want it to be in a div e.g. , and I want that to be done automatically, so I don’t have to do that in HTML editor. I don’t want to use js to accomplish this and by the way I want to know how to […]

Can I attach an image to a different post?

Image galleries display those images that were uploaded to that post, by default. If I wanted to move an image to a different post, so it appeared there instead, would I have to delete and re-upload? Or, is there a way to re-assign an image that’s already in the Media Library?

How to put Stack Exchange Flair as widget?

I want to put my flair in as a widget in the top of my sidebar in my blog. There was a similar question asked here but the only answer links to the flair page and suggests copying and pasting the html into the theme. I don’t want to edit my theme, I want to […]

Get the size (size in Kb or MB) of an featured image?

I need to display some featured image info on post page. Among other info I need to display file size of image (featured image of post). I tried this function inside single.php. <?php function getSize($file){ $bytes = filesize($file); $s = array(‘b’, ‘Kb’, ‘Mb’, ‘Gb’); $e = floor(log($bytes)/log(1024)); return sprintf(‘%.2f ‘.$s[$e], ($bytes/pow(1024, floor($e)))); } ?> and […]

How to add an image for unit testing?

I have to test the function where it calls wp_get_attachment_image_src. How do I add an image for testing, because right now if I call this method it returns false.

WordPress Post featured image URL in the header

I want to add the featured image URL of a post to the header. When a Facebook user shares a WordPress page, this code in the header: The rel=”image_src” attribute is what facebook is searching for. <link rel=”image_src” href=”FEATUREDIMAGEURL”> Will return a specific image for the share. However, I cannot figure out how to add […]

Thumbnails produce unwanted gray pixels on white background

Is there a workaround for producing QUALITY “Featured Image” thumbnails of different sizes? WordPress produces compressed thumbnails that contain grey pixels where it should be a completely white background. Non-white backgrounds look okay. I am using Mac laptop if it matters. I am not using any plugins. How can I stop WordPress compression from producing […]

3.5 media.editor: what is the event listener for choosing an image?

What is the event listener for selecting an image in the media.editor javascript. I am attempting to add a multiple image selector to a custom plugin, and I need to show the user what images they have selected, before actually hitting the ‘Select’ button or the ‘Insert’ button. I have the media.editor configured like this: […]