OK I’ve successfully added the custom meta field “price” but I would now like to add multiple images. It would ideally be similar to how wp e-commerce does it.
Basically display the attached images on the “add new product” page in admin area and add functionality to delete or add new images.
Does anyone know of a good, easy-to-follow tutorial anywhere?
The gallery isn’t a bad option but I want to automatically call the attached images without having to physically add a gallery in the post.
My issue right now is calling the first ordered image attachment to my custom post. I want to list my custom posts with the image and title for each one.
My template is as follows so far: http://pastebin.com/559zV1v0
[custom post type is actually ‘marquees’]
Basically my code wants to go:
query all the posts with post type='marquees'
start the loop
if the post has a featured image, output it.
elseif it doesn't have featured image output the 1st image attachment
output the post title
next post
end loop