Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using a custom template for my monthly Archive page. This page will show all the posts-links (category-wise) for the particular month.

In the very first post of each month, there shall be only one image. I want to pull this image and need to show it as a thumbnail on the specific-month archive page, before the posts-links of the said month.

How can it be possible? Many thanks for kind help.

share|improve this question
add comment

2 Answers

This will get the first image listed in the "gallery" section of your post (not the visible gallery if there is one, but the one if you click on insert image)

http://snipplr.com/view/12513/display-the-first-image-attachment-of-a-wordpress-post/

share|improve this answer
add comment

I'd use Get The Image plugin and call it in archive template for first post (on is_month() conditional if needed).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.