Get the image plugin

Usage: <?php get_the_image( array( ‘default_image’ => ‘http://mysite.com/wp-content/uploads/example.jpg’ ) ); ?> Parameters: $defaults = array( ‘meta_key’ => array( ‘Thumbnail’, ‘thumbnail’ ), ‘post_id’ => $post->ID, ‘attachment’ => true, ‘the_post_thumbnail’ => true, ‘size’ => ‘thumbnail’, ‘default_image’ => false, ‘order_of_image’ => 1, ‘link_to_post’ => true, ‘image_class’ => false, ‘image_scan’ => false, ‘width’ => false, ‘height’ => false, ‘format’ =>… Continue reading Get the image plugin

Thumbnails

Add to functions.php: add_theme_support( ‘post-thumbnails’ ); Add to theme: <?php echo get_the_post_thumbnail($page->ID, ‘thumbnail’); ?>