Big Image on Featured Post, Normal on Single Post

You can show featured images at multiple sizes easily enough, by specifying the size of image when you make the call, but if you want them to be different you can use the code in this plugin: http://wordpress.org/extend/plugins/multiple-featured-images/ Here’s a tutorial: http://lifeonlars.com/wordpress/how-to-add-multiple-featured-images-in-wordpress/ e.g. Example registration: if (class_exists(‘MultiPostThumbnails’) { if (MultiPostThumbnails::has_post_thumbnail(‘folio’, ‘feature-image-2’)) { MultiPostThumbnails::the_post_thumbnail(‘folio’, ‘feature-image-2’); } … Read more

Category index featured image

What I did was; using the Taxonomy Images plugin to associate an image with each category, then to my theme’s header.php, below the <a> line in the above code; <?php $image_id = apply_filters( ‘taxonomy-images-queried-term-image-id’, 0 ); if ( is_category() && ! empty( $image_id )): print apply_filters( ‘taxonomy-images-queried-term-image’, ”, array( ‘image_size’ => ‘header’ ) ); else … Read more

Retrieve post thumbnail as array

The solution is to use wp_get_attachment_image_src. As per the Codex: $attachment_id = 8; $size=”full”; // returns an array $image_attributes = wp_get_attachment_image_src( $attachment_id, $size ); Although the return is said to be: [0] => url [1] => width [2] => height There is a fourth element that indicates if it is the full image (false) or … Read more

Errors when uploading images in WP 3.5

This was addressed on the Minimatica website: http://www.onedesigns.com/support/topic/how-to-fix-issues-with-media-uploader-with-minimatica-in-wordpress-3-5 You will need to update your functions.php file as follows: In functions.php find this line (line 225 if you haven’t altered the file): add_action(‘init’, ‘minimatica_register_styles’); and replace it with — add_action(‘wp_enqueue_scripts’, ‘minimatica_register_styles’); AND Then find this line (line 437 if you haven’t altered the file): add_filter( ‘ext2type’, … Read more