I'm trying to add a custom section to my website to link to the same image galleries used by the Flashlight theme. However, I cannot see how the images are linked to each page in the database.
Example: I have a page with post ID 382 in my wp_posts table. I uploaded 10 images to the gallery for this page and they show up where they should on the site.
http://www.mcmonigal.com/new/show/live/river-road
I look in the post_metadata table and the images are listed there, but with different post ID's, not 382.
In the wp_posts table, I also see an entry for each of the images from the gallery, but they don't say 382 anywhere in the record.
There is also a gallery record for the gallery, but it also does not reference 382 anywhere.
Can you tell me how the page is linked to the gallery? What fields do they have in common so that I can pull the correct images for a page?














