Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Apologies if this is not a question and belongs more in discussion, but In dealing with image attachments for a portfolio site, what is the benefit to having images be "attached" to a post versus saving the image IDs as an array in a post_meta field?

share|improve this question

1 Answer

Both the things are same. When an image is attached to a post, an entry is made in the meta table for the attached image's path.

share|improve this answer
you are referring to an attachment, both the guid and the attachment's meta field point to the image's original URL. when an image is attached, it's post_parent is set as the ID for the post it is attached to. i'm asking if it makes more sense to store the list of attached images as meta for the parent.. or set the attachments as having a post_parent. – helgatheviking Sep 5 '12 at 20:56

Your Answer

 
discard

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.