Page speed error: “serve scaled images”

The best way would be to resize them before uploading them. You could also try using this function to resize the image on the fly. <?php /* * Resize images dynamically using wp built in functions * Victor Teixeira * * php 5.2+ * * Exemplo de uso: * * <?php * $thumb = get_post_thumbnail_id(); … Read more

image_downsize returning an Array?

http://codex.wordpress.org/Function_Reference/image_downsize Returns: (bool|array) False on failure, array on success. Array with image url, width, height, and whether is intermediate size, in that order is returned on success is returned. $is_intermediate is true if $url is a resized image, false if it is the original. I am going to assume the array within the array part … Read more

How do I display the featured image from an image gallery using a reference in code? (example within)

UPDATED First, let’s create a new image size. We could update one of the existing sites, but we’ll just add a new one for experience sake. Open up your functions.php file and add the following: if ( function_exists( ‘add_image_size’ ) ) { add_image_size( ‘new-size’, 500, 500, true ); // Cropped add_image_size( ‘another-size’, 400, 600 ); … Read more

Link to full-size image for subscriber only

Sure it is… its a 3 step process.. Check if user is logged in return check and create an if condition return the BIG image link or not at all (right?) The code (not check for user level since subscriber is the lowest level) if ( is_user_logged_in() ) { echo ‘<a href=””><img src=”LINK TO BIG … Read more

Metabox image upload value

It appears that $field[‘custom_image’] isn’t passing what you want it to. The returned values do not appear to be correct. You want to put the key of the meta value you need as the second variable in the get_post_meta() function, for example: $image_upload = get_post_meta($post->ID, ‘_my_image_id’, true); Each custom meta field you create has a … Read more

How can I externally retrieve a post’s custom sized image

Try RSS, like Magpie RSS – PHP RSS Parser or Google Feed API — Google Developers to pull posts without using WP’s library. Google Groups has forum posts on pulling images, and someone at SO found a way to pull images from Magpie: https://stackoverflow.com/questions/3490740/pulling-images-from-rss-atom-feeds-using-magpie-rss There are lots of other resources via Google.