WordPress.org

Ready to get started?Download WordPress

Forums

Category template listing post feature images (1 post)

  1. calebo
    Member
    Posted 1 year ago #

    Hi

    I'm new to wp and trying to make a custom template for my category page.

    How can I pull only the feature image (full size) of every post under a category as a link?

    The listing I want to produce would be something like this.

    <ul class="display-posts-listing">
      <li class="listing-item"><a href="link-to-post"><img src="featureimage"></a></li>
      <li class="listing-item"><a href="link-to-post"><img src="featureimage"></a></li>
      </ul>

Topic Closed

This topic has been closed to new replies.

About this Topic