<?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: Link portfolio images to website</title>
		<link>http://www.kriesi.at/support/topic/link-portfolio-images-to-website</link>
		<description>Support Forum - Topic: Link portfolio images to website</description>
		<language>en-US</language>
		<pubDate>Thu, 20 Jun 2013 09:16:03 +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/link-portfolio-images-to-website" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Link portfolio images to website"</title>
			<link>http://www.kriesi.at/support/topic/link-portfolio-images-to-website#post-24619</link>
			<pubDate>Thu, 11 Aug 2011 16:36:13 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">24619@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Can you create me an admin account and send me the login data to: &#60;a href=&#34;mailto:kriesi2000-dude@yahoo.com&#34;&#62;kriesi2000-dude@yahoo.com&#60;/a&#62; - I'll look into it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Irtellidesign on "Link portfolio images to website"</title>
			<link>http://www.kriesi.at/support/topic/link-portfolio-images-to-website#post-24613</link>
			<pubDate>Thu, 11 Aug 2011 16:24:06 +0000</pubDate>
			<dc:creator>Irtellidesign</dc:creator>
			<guid isPermaLink="false">24613@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Are you sure that the code is correct? It does this: &#60;a href=&#34;http://bht-design.org.uk/portfolio/&#34; rel=&#34;nofollow&#34;&#62;http://bht-design.org.uk/portfolio/&#60;/a&#62;&#60;br /&#62;
The middle link is the one that should link to the website.&#60;br /&#62;
Also, would you be able to provide revised code so that the website link opens in a new tab please?&#60;/p&#62;
&#60;p&#62;Many, many thanks. :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Link portfolio images to website"</title>
			<link>http://www.kriesi.at/support/topic/link-portfolio-images-to-website#post-24592</link>
			<pubDate>Thu, 11 Aug 2011 13:17:35 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">24592@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Yes - replace:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$prev_image = kriesi_post_thumb($post-&#38;gt;ID, array(&#38;#39;size&#38;#39;=&#38;gt; array($portfolioInfo[2],&#38;#39;_preview_medium&#38;#39;),
																 &#38;#39;wh&#38;#39; =&#38;gt; $k_option[&#38;#39;custom&#38;#39;][&#38;#39;imgSize&#38;#39;][$portfolioInfo[2]],
																 &#38;#39;display_link&#38;#39; =&#38;gt; array($openImage),
																&#38;#39;linkurl&#38;#39; =&#38;gt; array (&#38;#39;XL&#38;#39;,&#38;#39;_preview_big&#38;#39;),
																&#38;#39;link_attr&#38;#39; =&#38;gt; array(&#38;#39;class&#38;#39;=&#38;gt;&#38;#39;preloading&#38;#39;)
																));&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$post_meta = get_post_meta($post-&#38;gt;ID, &#38;#39;url&#38;#39;, true);

if($post_meta){
$link = &#38;#39;external&#38;#39;;
}else{
$link = array($openImage);
}

				$prev_image = kriesi_post_thumb($post-&#38;gt;ID, array(&#38;#39;size&#38;#39;=&#38;gt; array($portfolioInfo[2],&#38;#39;_preview_medium&#38;#39;),
																 &#38;#39;wh&#38;#39; =&#38;gt; $k_option[&#38;#39;custom&#38;#39;][&#38;#39;imgSize&#38;#39;][$portfolioInfo[2]],
																 &#38;#39;display_link&#38;#39; =&#38;gt; $link,
																&#38;#39;linkurl&#38;#39; =&#38;gt; array (&#38;#39;XL&#38;#39;,&#38;#39;_preview_big&#38;#39;),
																&#38;#39;link_attr&#38;#39; =&#38;gt; array(&#38;#39;class&#38;#39;=&#38;gt;&#38;#39;preloading&#38;#39;)
																));&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;span&#38;gt;&#38;quot;.$prev_image.&#38;quot;&#38;lt;/span&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php if($post_meta){ ?&#38;gt;
&#38;lt;span&#38;gt;&#38;lt;a href=&#38;#39;&#38;quot;.get_post_meta($post-&#38;gt;ID, &#38;#39;url&#38;#39;, true).&#38;quot;&#38;#39;&#38;gt;&#38;quot;.$prev_image.&#38;quot;&#38;lt;/a&#38;gt;&#38;lt;/span&#38;gt;
&#38;lt;?php }else{ ?&#38;gt;
&#38;lt;span&#38;gt;&#38;quot;.$prev_image.&#38;quot;&#38;lt;/span&#38;gt;
&#38;lt;?php } ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Afterwards you can set post meta fields to use external urls for the. Call the fields &#34;url&#34; and type in the websites' adresses as values.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Irtellidesign on "Link portfolio images to website"</title>
			<link>http://www.kriesi.at/support/topic/link-portfolio-images-to-website#post-24589</link>
			<pubDate>Thu, 11 Aug 2011 13:03:13 +0000</pubDate>
			<dc:creator>Irtellidesign</dc:creator>
			<guid isPermaLink="false">24589@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Is there any way to do this with only some items?&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Link portfolio images to website"</title>
			<link>http://www.kriesi.at/support/topic/link-portfolio-images-to-website#post-16900</link>
			<pubDate>Wed, 13 Apr 2011 06:03:08 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">16900@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad that we could help you :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>webizm on "Link portfolio images to website"</title>
			<link>http://www.kriesi.at/support/topic/link-portfolio-images-to-website#post-16851</link>
			<pubDate>Tue, 12 Apr 2011 21:32:41 +0000</pubDate>
			<dc:creator>webizm</dc:creator>
			<guid isPermaLink="false">16851@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;You guys are the best.  Thanks Dude and James!!  :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>James Morrison on "Link portfolio images to website"</title>
			<link>http://www.kriesi.at/support/topic/link-portfolio-images-to-website#post-16821</link>
			<pubDate>Tue, 12 Apr 2011 12:39:13 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">16821@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;Firstly, you need to modify the portfolio options to support custom fields. To do this, open /theme_options/portfolio.php and find this code (around line 59):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$args = array(
        	&#38;#39;labels&#38;#39; =&#38;gt; $labels,
        	&#38;#39;public&#38;#39; =&#38;gt; true,
        	&#38;#39;show_ui&#38;#39; =&#38;gt; true,
        	&#38;#39;capability_type&#38;#39; =&#38;gt; &#38;#39;post&#38;#39;,
        	&#38;#39;hierarchical&#38;#39; =&#38;gt; false,
        	&#38;#39;rewrite&#38;#39; =&#38;gt; array(&#38;#39;slug&#38;#39;=&#38;gt;$slugRule,&#38;#39;with_front&#38;#39;=&#38;gt;true),
        	&#38;#39;query_var&#38;#39; =&#38;gt; true,
        	&#38;#39;show_in_nav_menus&#38;#39;=&#38;gt; false,
        	&#38;#39;menu_position&#38;#39; =&#38;gt; 5,
        	&#38;#39;supports&#38;#39; =&#38;gt; array(&#38;#39;title&#38;#39;,&#38;#39;thumbnail&#38;#39;,&#38;#39;excerpt&#38;#39;,&#38;#39;editor&#38;#39;,&#38;#39;comments&#38;#39;)
        );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Change the &#60;strong&#62;supports&#60;/strong&#62; to include custom fields like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$args = array(
        	&#38;#39;labels&#38;#39; =&#38;gt; $labels,
        	&#38;#39;public&#38;#39; =&#38;gt; true,
        	&#38;#39;show_ui&#38;#39; =&#38;gt; true,
        	&#38;#39;capability_type&#38;#39; =&#38;gt; &#38;#39;post&#38;#39;,
        	&#38;#39;hierarchical&#38;#39; =&#38;gt; false,
        	&#38;#39;rewrite&#38;#39; =&#38;gt; array(&#38;#39;slug&#38;#39;=&#38;gt;$slugRule,&#38;#39;with_front&#38;#39;=&#38;gt;true),
        	&#38;#39;query_var&#38;#39; =&#38;gt; true,
        	&#38;#39;show_in_nav_menus&#38;#39;=&#38;gt; false,
        	&#38;#39;menu_position&#38;#39; =&#38;gt; 5,
        	&#38;#39;supports&#38;#39; =&#38;gt; array(&#38;#39;title&#38;#39;,&#38;#39;thumbnail&#38;#39;,&#38;#39;excerpt&#38;#39;,&#38;#39;editor&#38;#39;,&#38;#39;comments&#38;#39;,&#38;#39;custom-fields&#38;#39;)
        );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Next, you need to enable the screen option for custom fields if it's not already active. If you don't see this highlighted box on the portfolio page: &#60;a href=&#34;http://cl.ly/16443l2q3z2j1V1X0d1x&#34; rel=&#34;nofollow&#34;&#62;http://cl.ly/16443l2q3z2j1V1X0d1x&#60;/a&#62; then you can enable it under screen options at the top of the page: &#60;a href=&#34;http://cl.ly/2V2A3A0l391B2k373O1A&#34; rel=&#34;nofollow&#34;&#62;http://cl.ly/2V2A3A0l391B2k373O1A&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Once this is completed you can add your custom field. From the code Dude provided above it should be called &#60;strong&#62;url&#60;/strong&#62; so put this in the Name field and the URL you want to link to in the Value field.&#60;/p&#62;
&#60;p&#62;Hope this helps!&#60;/p&#62;
&#60;p&#62;James
&#60;/p&#62;</description>
		</item>
		<item>
			<title>webizm on "Link portfolio images to website"</title>
			<link>http://www.kriesi.at/support/topic/link-portfolio-images-to-website#post-16781</link>
			<pubDate>Mon, 11 Apr 2011 16:25:25 +0000</pubDate>
			<dc:creator>webizm</dc:creator>
			<guid isPermaLink="false">16781@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I have made the changes in the template_portfolio.php.  Can you tell me how to set post meta fields....I am confused on how to do this.  Don't seem to be getting anywhere.&#60;/p&#62;
&#60;p&#62;thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Link portfolio images to website"</title>
			<link>http://www.kriesi.at/support/topic/link-portfolio-images-to-website#post-16758</link>
			<pubDate>Mon, 11 Apr 2011 13:34:24 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">16758@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
open up template_portfolio.php and replace:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;#39;display_link&#38;#39; =&#38;gt; array($openImage),
																&#38;#39;linkurl&#38;#39; =&#38;gt; array (&#38;#39;XL&#38;#39;,&#38;#39;_preview_big&#38;#39;),&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;#39;display_link&#38;#39; =&#38;gt; external,
																&#38;#39;linkurl&#38;#39; =&#38;gt; &#38;#39;&#38;#39;,&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then replace:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;span&#38;gt;&#38;quot;.$prev_image.&#38;quot;&#38;lt;/span&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;span&#38;gt;&#38;lt;a href=&#38;#39;&#38;quot;.get_post_meta($post-&#38;gt;ID, &#38;#39;url&#38;#39;, true).&#38;quot;&#38;#39;&#38;gt;&#38;quot;.$prev_image.&#38;quot;&#38;lt;/a&#38;gt;&#38;lt;/span&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Afterwards you can set post meta fields to use external urls for the. Call the fields &#34;url&#34; and type in the websites' adresses as values.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>webizm on "Link portfolio images to website"</title>
			<link>http://www.kriesi.at/support/topic/link-portfolio-images-to-website#post-16720</link>
			<pubDate>Mon, 11 Apr 2011 01:34:13 +0000</pubDate>
			<dc:creator>webizm</dc:creator>
			<guid isPermaLink="false">16720@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Love Avisio.  I would like to link the portfolio images to the client's website.  Is this possible?  I am a web designer and am using the portfolio page too show my work.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
