<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: Flashlight images- how are galleries/images linked to pages in wordpress table?</title>
		<link>http://www.kriesi.at/support/topic/flashlight-images-how-are-galleriesimages-linked-to-pages-in-wordpress-table</link>
		<description>Support Forum - Topic: Flashlight images- how are galleries/images linked to pages in wordpress table?</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 13:35:44 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/flashlight-images-how-are-galleriesimages-linked-to-pages-in-wordpress-table" rel="self" type="application/rss+xml" />

		<item>
			<title>Ismael on "Flashlight images- how are galleries/images linked to pages in wordpress table?"</title>
			<link>http://www.kriesi.at/support/topic/flashlight-images-how-are-galleriesimages-linked-to-pages-in-wordpress-table#post-72230</link>
			<pubDate>Wed, 22 Aug 2012 06:24:33 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">72230@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi SpanglerDesign,&#60;/p&#62;
&#60;p&#62;Glad that you've fixed it. :) Marked this as resolved.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SpanglerDesign on "Flashlight images- how are galleries/images linked to pages in wordpress table?"</title>
			<link>http://www.kriesi.at/support/topic/flashlight-images-how-are-galleriesimages-linked-to-pages-in-wordpress-table#post-72143</link>
			<pubDate>Tue, 21 Aug 2012 18:41:00 +0000</pubDate>
			<dc:creator>SpanglerDesign</dc:creator>
			<guid isPermaLink="false">72143@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;ok, nevermind...I figured it out, based on the direction from your previous response. It seems I needed to edit a little bit more of the code to get the images to actually use the correct page ID.&#60;/p&#62;
&#60;p&#62;In the class-htmlhelper.php file, I replaced this section:&#60;/p&#62;
&#60;p&#62;                                              if(!empty($element['attachment-prefix']))&#60;br /&#62;
			{&#60;br /&#62;
				if(empty($element['std']) &#38;amp;&#38;amp; empty($element['no-attachment-id']))&#60;br /&#62;
				{&#60;br /&#62;
					$element['std'] = uniqid();&#60;br /&#62;
					$id_generated = true;&#60;br /&#62;
				}&#60;/p&#62;
&#60;p&#62;				$gallery_mode = true;&#60;br /&#62;
				$postId = avia_media::get_custom_post($element['attachment-prefix'].$element['std']);&#60;br /&#62;
			}&#60;br /&#62;
			else&#60;br /&#62;
			{&#60;/p&#62;
&#60;p&#62;				$postId = avia_media::get_custom_post($element['name']);	&#60;/p&#62;
&#60;p&#62;			}&#60;/p&#62;
&#60;p&#62;WITH:&#60;/p&#62;
&#60;p&#62;				global $post_ID;&#60;br /&#62;
				$postId = $post_ID;&#60;br /&#62;
				$gallery_mode = true;&#60;/p&#62;
&#60;p&#62;Now it works as it should, but also keeps the original post ID attached to each image record and the gallery record in the wp_posts table.&#60;/p&#62;
&#60;p&#62;Thanks for the help!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SpanglerDesign on "Flashlight images- how are galleries/images linked to pages in wordpress table?"</title>
			<link>http://www.kriesi.at/support/topic/flashlight-images-how-are-galleriesimages-linked-to-pages-in-wordpress-table#post-72130</link>
			<pubDate>Tue, 21 Aug 2012 17:27:30 +0000</pubDate>
			<dc:creator>SpanglerDesign</dc:creator>
			<guid isPermaLink="false">72130@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;ok, thanks Peter, I applied that change but I don't think it quite resolves/answers what I was hoping it would.&#60;/p&#62;
&#60;p&#62;Here is what I am running into:&#60;/p&#62;
&#60;p&#62;I create a new page titled &#34;Test Page&#34;. In the wp_posts table, it is post_id 437.&#60;br /&#62;
Then I upload images to that page's gallery section. It creates a new record in the wp_posts table as post_id 438. Now all images are linked to post_id 438, which is great, BUT...&#60;/p&#62;
&#60;p&#62;I don't see anything on post_id 437 linking it to the gallery under post_id 438. And the gallery record for post_id 438 doesn't seem to reference post 437 either. &#60;/p&#62;
&#60;p&#62;So if I want to write a PHP script to access the images associated with my test page (ID 437), how will my script know to use the gallery with the ID 438? &#60;/p&#62;
&#60;p&#62;I just am not seeing where they are linked, but the theme knows how to associate them correctly, so they are obviously linked somewhere...&#60;/p&#62;
&#60;p&#62;Please advise...otherwise I will need to write a whole new section bypassing the nice built in gallery, which seems a waste.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tns on "Flashlight images- how are galleries/images linked to pages in wordpress table?"</title>
			<link>http://www.kriesi.at/support/topic/flashlight-images-how-are-galleriesimages-linked-to-pages-in-wordpress-table#post-72121</link>
			<pubDate>Tue, 21 Aug 2012 16:49:39 +0000</pubDate>
			<dc:creator>tns</dc:creator>
			<guid isPermaLink="false">72121@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Sorry to jump in here, but does this fix apply to product images as well? Also, what will happen to preexisting images if I make the change?&#60;/p&#62;
&#60;p&#62;Best,&#60;/p&#62;
&#60;p&#62;Mike
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Flashlight images- how are galleries/images linked to pages in wordpress table?"</title>
			<link>http://www.kriesi.at/support/topic/flashlight-images-how-are-galleriesimages-linked-to-pages-in-wordpress-table#post-72063</link>
			<pubDate>Tue, 21 Aug 2012 10:32:06 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">72063@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey! &#60;/p&#62;
&#60;p&#62; The images are attached to a (hidden) post - if you'd like to change this behaviour you can follow Kriesi's instructions here: &#60;a href=&#34;http://www.kriesi.at/support/topic/image-tags-missing#post-32207&#34; rel=&#34;nofollow&#34;&#62;http://www.kriesi.at/support/topic/image-tags-missing#post-32207&#60;/a&#62; &#60;/p&#62;
&#60;p&#62; Best regards,&#60;br /&#62;
Peter
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mya on "Flashlight images- how are galleries/images linked to pages in wordpress table?"</title>
			<link>http://www.kriesi.at/support/topic/flashlight-images-how-are-galleriesimages-linked-to-pages-in-wordpress-table#post-72026</link>
			<pubDate>Tue, 21 Aug 2012 04:05:25 +0000</pubDate>
			<dc:creator>Mya</dc:creator>
			<guid isPermaLink="false">72026@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I can't be of much help. Devin or Dude though hopefully can. The two of them have been tagged to this thread.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Mya
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SpanglerDesign on "Flashlight images- how are galleries/images linked to pages in wordpress table?"</title>
			<link>http://www.kriesi.at/support/topic/flashlight-images-how-are-galleriesimages-linked-to-pages-in-wordpress-table#post-71985</link>
			<pubDate>Tue, 21 Aug 2012 01:00:03 +0000</pubDate>
			<dc:creator>SpanglerDesign</dc:creator>
			<guid isPermaLink="false">71985@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;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.&#60;/p&#62;
&#60;p&#62;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.&#60;br /&#62;
&#60;a href=&#34;http://www.mcmonigal.com/new/show/live/river-road&#34; rel=&#34;nofollow&#34;&#62;http://www.mcmonigal.com/new/show/live/river-road&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I look in the post_metadata table and the images are listed there, but with different post ID's, not 382.&#60;br /&#62;
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.&#60;br /&#62;
There is also a gallery record for the gallery, but it also does not reference 382 anywhere.&#60;/p&#62;
&#60;p&#62;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?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
