Thumbnail and image management

I made my own, but I only included the basic parameters. Just place this code in your theme’s functions.php file. You will need to update the path to timThumb. // [timThumb id=”123″ w=”300″] function timThumb_func( $atts ) { extract( shortcode_atts( array( ‘id’ => ”, ‘w’ => ”, ‘h’ => ”, ‘q’ => ’90’ ), $atts … Read more

Upload image through URL?

When you link to an external image, WordPress will reference the external URL. media_handle_upload is meant to handle uploaded images that are now living on your server. So unless you’re telling the server to download the image from the external source and save it on your server, media_handle_upload won’t apply. It sounds like you’re building … Read more

custom image size not being fetched

It turns out WP got confused because i used the settings> medias screen to also set the “medium” dimensions to 670×290. This redundance seems to disable entirely both the “medium” and the “listing-post-thumbnail” dimensions. Replacing the medium dimension values to 0 and then regenerating the thumbnails solved the issue. Thanks to those who tried to … Read more

query_posts thumbnail condition

the two single quote marks (after the number 1) in this line (of the top posted code section) seem to be causing the error – there should only be one single quote; shown below: query_posts(‘orderby=date&cat=” . $cat . “&order=ASC&posts_per_page=-1’); it is just puzzling that your other code (with the same error) alledegly does work (?) … Read more

featured image metabox MU

Ok I found the answer here: http://wordpress.org/support/topic/no-featured-image-metabox-in-mu Quote: “On multisite, if you do not enable the IMAGE UPLOADS, under Network admin -> Settings, then …. well, that kind precludes having featured images. Tick that box. Save. Featured images show up on the screen options tab.”