<?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: PDF Portfolio Read More</title>
		<link>http://www.kriesi.at/support/topic/pdf-portfolio-read-more</link>
		<description>Support Forum - Topic: PDF Portfolio Read More</description>
		<language>en-US</language>
		<pubDate>Sat, 18 May 2013 19:04:45 +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/pdf-portfolio-read-more" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "PDF Portfolio Read More"</title>
			<link>http://www.kriesi.at/support/topic/pdf-portfolio-read-more#post-20676</link>
			<pubDate>Wed, 08 Jun 2011 05:15:01 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">20676@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;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;</description>
		</item>
		<item>
			<title>bbihun12 on "PDF Portfolio Read More"</title>
			<link>http://www.kriesi.at/support/topic/pdf-portfolio-read-more#post-20598</link>
			<pubDate>Tue, 07 Jun 2011 06:25:20 +0000</pubDate>
			<dc:creator>bbihun12</dc:creator>
			<guid isPermaLink="false">20598@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thank you,&#60;/p&#62;
&#60;p&#62;In the Avisio theme the portfolio is different and is not connected to pages where you can add the custom field.  The portfolio for Avisio has an independent portfolio items and on the add new portfolio item there is no way to add a custom field in order to call out the pdf file.  &#60;/p&#62;
&#60;p&#62;How would I attach a pdf file to that certain portfolio item for Avisio after changing that code?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "PDF Portfolio Read More"</title>
			<link>http://www.kriesi.at/support/topic/pdf-portfolio-read-more#post-20589</link>
			<pubDate>Tue, 07 Jun 2011 05:36:20 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">20589@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
yes - replace following code in template_portfolio.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;echo &#38;quot;&#38;lt;a href=&#38;#39;&#38;quot;.get_permalink().&#38;quot;&#38;#39; class=&#38;#39;more-link&#38;#39;&#38;gt;&#38;quot;.__(&#38;#39;Read more&#38;#39;,&#38;#39;avisio&#38;#39;).&#38;quot;&#38;lt;/a&#38;gt;&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if (get_post_meta($post-&#38;gt;ID, &#38;#39;pdffile&#38;#39;, true) != &#38;#39;&#38;#39;){
echo &#38;#39;&#38;lt;a class=&#38;quot;more-link&#38;quot; href=&#38;quot;&#38;#39;.get_post_meta($post-&#38;gt;ID, &#38;#39;pdffile&#38;#39;, true).&#38;#39;&#38;quot;&#38;gt;Download PDF document&#38;lt;/a&#38;gt;&#38;#39;;
}else{
echo &#38;quot;&#38;lt;a href=&#38;#39;&#38;quot;.get_permalink().&#38;quot;&#38;#39; class=&#38;#39;more-link&#38;#39;&#38;gt;&#38;quot;.__(&#38;#39;Read more&#38;#39;,&#38;#39;avisio&#38;#39;).&#38;quot;&#38;lt;/a&#38;gt;&#38;quot;;
 }&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>bbihun12 on "PDF Portfolio Read More"</title>
			<link>http://www.kriesi.at/support/topic/pdf-portfolio-read-more#post-20578</link>
			<pubDate>Mon, 06 Jun 2011 22:14:13 +0000</pubDate>
			<dc:creator>bbihun12</dc:creator>
			<guid isPermaLink="false">20578@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I need the read more button for the portfolio to open up a pdf file in my root directory.  Same like I needed for display theme.  Do I use the same code and put a custom field on the pages again?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
