I want to take photos that are already uploaded in my media library, and associate them with a post, so that I can include them in a "gallery."
I know that if you are editing a post, and you upload photos, they will be included in a "Gallery" for that post, so that mus mean that they are tagged somehow in the database: either as "Post## is associated with picutureX, pictureY, pictureZ" or "PictureX is associated with Post##"
Can anybody point me to where in the database this association is listed, so that I can change it directly in the database, thereby fooling WordPress into thinking those pictures were uploaded from a the particular post I now want to include them in (as a gallery)?
Clear as mud?
(I've searched the forum, and have not found a satisfactory answer)