what’s the syntax for if the image exists get the image?
It’s not completely clear if you want to show one image or all image for each post. If you want to show just one, I’d use the post thumbnail: Check for a post thumbnail. If there’s a post thumbnail – output it (for simplicity I’m assuming you’d output it in a new template part; you … Read more