Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How significant is the guid field in wp_posts?

I'm doing a migration and adding a lot of images to the table (via wp_insert_attachment, wp_generate_attachment_metadata and wp_update_attachment_metadata), but the guid field isn't filled by default.

Should i correct this?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

If you want to offer an ATOM feed for your attachments you should pass a GUID to wp_insert_attachment() or add a filter for 'get_the_guid' that handles empty values. In most (all?) other cases I wouldn’t care about it.

share|improve this answer
add comment

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.