adamhdv
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Alpha/Beta/RC
In reply to: Use more than one Post Thumbnail in WP 2.9^^above actually displays the same images for every single post instead of using images per each post. Anyway to fix that?
Forum: Alpha/Beta/RC
In reply to: Use more than one Post Thumbnail in WP 2.9After looking into this a bit more…this is what I did. Not sure if it’s right or wrong, but it seems to work.
In functions.php:
<?php $args = array( 'post_type' => 'attachment', 'post_mime_type' => 'image', 'post_parent' => $post->ID ); $images = get_posts( $args ); foreach($images as $image): endforeach; ?>Inside the loop:
<?php echo wp_get_attachment_image($images[0]->ID, 'thumbnail'); ?>Using [0],[1]…etc to set the number of images I wanted.
Thoughts?
Forum: Alpha/Beta/RC
In reply to: Use more than one Post Thumbnail in WP 2.9@vteixeira: Woah, I didn’t know wp had that built in. Do I need to include anything in functions.php to use that?
Forum: Alpha/Beta/RC
In reply to: Use more than one Post Thumbnail in WP 2.9I wanted to use this to place additional photos of a post on the homepage along side the main image being displayed for each post.
Ultimately, I could do it with custom fields but I like the ease of the feature of the new Thumbnail option.
Viewing 4 replies - 1 through 4 (of 4 total)