@jamble
@jamble
Out of context: Reply #5
- Started
- Last post
- 5 Responses
- neverblink0
well, a wordpress dev' to be exact, it's a predetermined WP-function.
Put this in your loop to display all images you've uploaded for current post at "medium" size.
$args = array(
'post_type' => 'attachment',
'numberposts' => -1,
'post_status' => null,
'post_parent' => $post->ID
);
$attachments = get_posts($args);
if($attachments){
$thumb = wp_get_attachment_image_src($att...
foreach ($attachments as $attachment) {
print(wp_get_attachment_image($a... "medium"));
}
}- qbn clipped the longer sentences.. I'll put it online for youneverblink
- http://snipt.org/nTgā¦neverblink