Calling two images at a time? A better way?

Yep – it is pretty inefficient. Here is a rewrite: <div id=”engagement”> <?php $images = new WP_Query( array( ‘post_parent’ => get_the_ID(), ‘post_status’ => ‘inherit’, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => ‘ASC’, ‘orderby’ => ‘menu_order ID’, ‘offset’ => 0, ‘posts_per_page’ => 6, // show six images total ‘update_post_term_cache’ => false, ) ); $count = … Read more

Upload images – Theme options

I can’t comment on your code, but you might find this link useful: Options Framework Theme: http://wptheming.com/options-framework-theme/ This is something you have to edit carefully, but it has pretty much every type of control you can think of in there. It also had the only working MCE Editor that I could find. I wanted that … Read more

Resize uploaded images [duplicate]

I use a plugin called AJAX Thumbnail Rebuild. It goes through all of the images in your media library and re-sizes them based on any image sizes registered (including the defaults and anything added with add_image_size()). It only runs when you manually request it and you can tell it to only rebuild certain sizes if … Read more

How do I implement an image viewer and rotator? [closed]

There are a ton of slider plugins. Some are just jQuery plugins that would require you to create your own code for, but off the top of my head I know that Nivo and Woo both make fully-integrated slider plugins where you can control the control from within WordPress. Both release their jQuery plugin script, … Read more

limit number of images shown from gallery

Try this: $args = array( ‘name’=>’header-images’, ‘posts_per_page’ => 4, ‘orderby’ => ‘rand’ ); i.e. use posts_per_page instead of numberposts if you want to use query_posts() according to the the Codex page: http://codex.wordpress.org/Function_Reference/query_posts Edit: Here is one idea – fetch the gallery shortcode ids from a page content with a given slug: /* * Get an … Read more

Fetch the latest post with attachment image

This is a tricky one. If you wanted to get the latest image attachment and display the post associated with it, you could use: $attachments = get_posts(‘post_type=attachment’); $first_attachment_post = get_post($attachments[0]->post_parent); To get the latest post, but only if it has an attachment, I think the only way to do it would be with two nested … Read more

How come the images arent loading properly?

The site’s Adress should be http://www.loftycsei.org/. You got a Problem in your timthumb.php, it is delivered with your Theme. It uses a deprecated Function on Line 549, ereg. The Problem is that when your image is processed, it outputs the deprecated warning before sending the Headerinformation for the Contents being a JPG. You got various … Read more