Retrieve a thumbnail from a post (wp_get_attachment_image)
-
Hello guys,
I’ve been surfing the net searching for plugins which will print a thumbnail from a post (its first image), beyond the fact the post’s text is going to be displayed or not.
I’ve found several very neat plugins to do that, but I’m going minimalist this time so I wonder what about this function ?
<?php echo wp_get_attachment_image( 1 ); ?>
1- Would that do the work inside the Loop? Why those (cool) plugins exists so ?
2- How do I call for the post_ID that this function seems to need ?
3- Can I use it in multiple loops ?
4- Can soemone post two different loops working side by side where this function would work ?Thanks very much for any answer,
D.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Retrieve a thumbnail from a post (wp_get_attachment_image)’ is closed to new replies.