What is the different between an attachment in wp_posts and an attachment in wp_postmeta?

The posts table contains information on the attachemnt post. In WordPress every uploaded media has it’s own post entry, where post_type is ‘attachment’ and post_status is ‘inherit’. In fact, you can get attachment post types using functions used to get other post types, like post, page or any CPT.

visit Stackexchange

Blog at WordPress.com.

Up ↑

%d bloggers like this: