<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

	<channel>
		<title>Smashly Community Forums &#187; Topic: Putting the short code into a custom field</title>
		<link>http://smashly.net/community/</link>
		<description>Smashly Community Forums &#187; Topic: Putting the short code into a custom field</description>
		<language>en</language>
		<pubDate>Wed, 08 Feb 2012 14:08:49 +0000</pubDate>

					<item>
				<title>byron on "Putting the short code into a custom field"</title>
				<link>http://smashly.net/community/topic/putting-the-short-code-into-a-custom-field#post-1291</link>
				<pubDate>Mon, 26 Apr 2010 01:14:42 +0000</pubDate>
				<dc:creator>byron</dc:creator>
				<guid isPermaLink="false">1291@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Welcome!&#60;br /&#62;
BB
&#60;/p&#62;</description>
			</item>
					<item>
				<title>zac on "Putting the short code into a custom field"</title>
				<link>http://smashly.net/community/topic/putting-the-short-code-into-a-custom-field#post-1286</link>
				<pubDate>Sun, 25 Apr 2010 06:56:44 +0000</pubDate>
				<dc:creator>zac</dc:creator>
				<guid isPermaLink="false">1286@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Fantastic!  That is just what I needed.  I did not know about do_shortcode .. that is very handy!  &#34;magic fields&#34; is actually the name of a plugin, they are similar to custom fields but I guess not necessary if I do it like this.  Thanks!
&#60;/p&#62;</description>
			</item>
					<item>
				<title>byron on "Putting the short code into a custom field"</title>
				<link>http://smashly.net/community/topic/putting-the-short-code-into-a-custom-field#post-1225</link>
				<pubDate>Tue, 20 Apr 2010 03:28:53 +0000</pubDate>
				<dc:creator>byron</dc:creator>
				<guid isPermaLink="false">1225@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Thanks, Zac!  I appreciate the comment!&#60;/p&#62;
&#60;p&#62;If by &#34;magic&#34; fields you mean you can feed it some PHP and it will execute, then you're in business.  I have no experience with magic fields, and very little with custom fields.&#60;/p&#62;
&#60;p&#62;The PHP you'd need would looks something like:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php echo do_shortcode(&#34;[photosmash]&#34;); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;That will display the gallery that is linked to the current post in the Loop.&#60;/p&#62;
&#60;p&#62;If you know the Gallery ID (say you had a variable like $customfield['gallery_id'] ), then you could:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php echo do_shortcode(&#34;[photosmash id=&#34; .  $customfield['gallery_id'] . &#34;]&#34;); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;I don't know what variable you would have for the custom field.  But that's the basic format for displaying the gallery.&#60;/p&#62;
&#60;p&#62;Hopefully that gets you started.  Let me know if you've got other questions on it.&#60;/p&#62;
&#60;p&#62;BB
&#60;/p&#62;</description>
			</item>
					<item>
				<title>zac on "Putting the short code into a custom field"</title>
				<link>http://smashly.net/community/topic/putting-the-short-code-into-a-custom-field#post-1219</link>
				<pubDate>Mon, 19 Apr 2010 07:53:59 +0000</pubDate>
				<dc:creator>zac</dc:creator>
				<guid isPermaLink="false">1219@http://smashly.net/community/</guid>
				<description>&#60;p&#62;Hi, I am hoping to work this into the template I am building but as far as I can tell you can only call a gallery using the shortcode in the html editor.  The way my template is, it is all broken up with a bunch of custom fields (actually &#34;magic&#34; fields) displaying different bits in their own little frame.  To work with this layout I would need to keep Photosmash separate from the main post content.  Is there a way to call the gallery id in another way than the shortcode in the main HTML editor?&#60;/p&#62;
&#60;p&#62;Thanks for all of your work on this Byron.  It is really one of the best plugins out there :)
&#60;/p&#62;</description>
			</item>
		
	</channel>

</rss>
