WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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)


share|improve this answer

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

Your Answer


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.