Instapress Plugin for WordPress

When Instagram announced their API I really wanted to take a crack at it and develop a WordPress plugin to pull in the pictures I share on Instagram. I’m really love Instagram and iPhone photography in general.

I haven’t had enough spare time to get around to writing my own plugin, but I still may. I have some ideas more integration with WordPress later. In the mean time, I found a handful of plugins that pull in your Instagram photos. I tried them all and Instapress is my Favorite. Like most plugins, it’s simple to install. It uses a widget to place the images in your sidebar and it supports a shortcode for embedding into posts/pages.

I tweaked the style it ships with a little to suit this layout. And I used a different size image than default because wanted a larger version so it would fill up the sidebar more since a single column was the only layout option. You could tweak that with css pretty easily to make them into columns, but I liked the photobooth type effect that the strip has.

One note on image sizes. It seems Instagram supports just about any size, but anything I tried over 300 kept turning into a rectangle instead of a square. I didn’t take any more time looking into it. It could have been my sites CSS or some other thing. I just dropped it back down to 250 and it still looks good.

Instapress is a pretty good plugin if you want include your Instagram stream.

Add Facebook Thumbnail Image to the Genesis WordPress Framework

Just wanted to share this little code snippet. The facebook share widget that you see on most sites can also include an image. Most of the time it can find one from your site and you can just cycle through them. But I don’t use images on all my sites or on all my posts, but sometimes I do use featured images to show on the home page or in a featured slider.

This little snippet adds the first image from your post and puts the img src meta tag into the header of your Genesis theme. Put this in your child theme functions.php file.


/*********************************************
Add Facebook image src so share widget can see thumbnails
*********************************************/
add_action('genesis_meta', 'add_facebook_image_src');
function add_facebook_image_src() {
    global $post;
    if (is_single() && has_post_thumbnail( $post->ID ) ):
        $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
        echo "<link rel=\"image_src\" href=\"$image[0]\" />\n";
    endif;
}