Post image-attachements not appearing properly on Index.php
-
Dear all,
I want to call the first image attachement from a post and display a smaller image of it on my index/category pages.
I’m using two loops on my index page. The first loop calls the latest post and the second calls the rest.I’m using the post_image() plugin to call my post-image attachments, but only a blank space is appearing in the first loop and both the attachment and the plugin are bizarelly appearing in the second loop.
The link for index.php is https://www.r4e.org/Diary and the loop’s code from Index.php code is below:
I’d like to ask if someone could kindly point out where I’m going wrong in both loops and why the attachments are showing on the index page when no call has been for them (nor have they been ‘sent to the editor’). Is this normal?
Thankyou very much,
Steven
- The topic ‘Post image-attachements not appearing properly on Index.php’ is closed to new replies.