<?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: comments in the portfolio - part 3</title>
		<link>http://www.kriesi.at/support/topic/comments-in-the-portfolio-part-3</link>
		<description>Support Forum - Topic: comments in the portfolio - part 3</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 20:26:38 +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/comments-in-the-portfolio-part-3" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Beard on "comments in the portfolio - part 3"</title>
			<link>http://www.kriesi.at/support/topic/comments-in-the-portfolio-part-3#post-39523</link>
			<pubDate>Wed, 01 Feb 2012 01:46:00 +0000</pubDate>
			<dc:creator>Chris Beard</dc:creator>
			<guid isPermaLink="false">39523@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;so - if I'm still following this right you want to add &#34;this post has X comments&#34; on single portfolio pages? Yes?&#60;br /&#62;
This can be done by adding the code Dude suggested in your topic - PT2 like this:&#60;/p&#62;
&#60;p&#62;All you have to do is: In propulsion\includes\loop-portfolio-single.php you have to add&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if(comments_open() &#124;&#124; get_comments_number())
		{
echo &#38;quot;&#38;lt;span class=&#38;#39;comment-container minor-meta&#38;#39;&#38;gt;&#38;quot;;
			comments_popup_link(__(&#38;#39;this entry has&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;quot; &#38;lt;span&#38;gt;0 &#38;quot;.__(&#38;#39;Comments&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;quot;&#38;lt;/span&#38;gt;&#38;quot;,
								__(&#38;#39;this entry has&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;quot; &#38;lt;span&#38;gt;1 &#38;quot;.__(&#38;#39;Comment&#38;#39; ,&#38;#39;avia_framework&#38;#39;).&#38;quot;&#38;lt;/span&#38;gt;&#38;quot;,
								__(&#38;#39;this entry has&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;quot; &#38;lt;span&#38;gt;% &#38;quot;.__(&#38;#39;Comments&#38;#39;,&#38;#39;avia_framework&#38;#39;).&#38;quot;&#38;lt;/span&#38;gt;&#38;quot;,&#38;#39;comments-link&#38;#39;,
								__(&#38;#39;Comments Off&#38;#39;  ,&#38;#39;avia_framework&#38;#39;));
			echo &#38;quot;&#38;lt;/span&#38;gt;&#38;lt;span class=&#38;#39;text-sep&#38;#39;&#38;gt;/&#38;lt;/span&#38;gt;&#38;quot;;
		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Right before&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/*
		echo &#38;#39;&#38;lt;span class=&#38;quot;blog-author minor-meta&#38;quot;&#38;gt;&#38;#39;.__(&#38;#39;by &#38;#39;,&#38;#39;avia_framework&#38;#39;);
		the_author_posts_link();
		echo &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
		*/&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>carriercarrier on "comments in the portfolio - part 3"</title>
			<link>http://www.kriesi.at/support/topic/comments-in-the-portfolio-part-3#post-38459</link>
			<pubDate>Mon, 23 Jan 2012 08:44:44 +0000</pubDate>
			<dc:creator>carriercarrier</dc:creator>
			<guid isPermaLink="false">38459@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi&#60;br /&#62;
Hi agin&#60;br /&#62;
I post this again as it still is not working..&#60;/p&#62;
&#60;p&#62;I tried adding the this code to both includes/loop-portfolio-single.php and includes/loop-index.php:, but nothing happened.&#60;/p&#62;
&#60;p&#62;-------------------------------------------------------&#60;/p&#62;
&#60;p&#62;You wrote:&#60;br /&#62;
I'm not sure which post type: belongs to. Depending on the post type you need to add following code to includes/loop-portfolio-single.php or includes/loop-index.php:&#60;/p&#62;
&#60;p&#62;(&#38;lt;?php&#60;br /&#62;
						if(comments_open() &#124;&#124; get_comments_number())&#60;br /&#62;
						{&#60;br /&#62;
							echo &#34;&#38;lt;span class='comment-container minor-meta'&#38;gt;&#34;;&#60;br /&#62;
							comments_popup_link(__('this entry has','avia_framework').&#34; &#38;lt;span&#38;gt;0 &#34;.__('Comments','avia_framework').&#34;&#38;lt;/span&#38;gt;&#34;,&#60;br /&#62;
												__('this entry has','avia_framework').&#34; &#38;lt;span&#38;gt;1 &#34;.__('Comment' ,'avia_framework').&#34;&#38;lt;/span&#38;gt;&#34;,&#60;br /&#62;
												__('this entry has','avia_framework').&#34; &#38;lt;span&#38;gt;% &#34;.__('Comments','avia_framework').&#34;&#38;lt;/span&#38;gt;&#34;,'comments-link',&#60;br /&#62;
												__('Comments Off'  ,'avia_framework'));&#60;br /&#62;
							echo &#34;&#38;lt;/span&#38;gt;&#38;lt;span class='text-sep'&#38;gt;/&#38;lt;/span&#38;gt;&#34;;&#60;br /&#62;
						}&#60;/p&#62;
&#60;p&#62;						?&#38;gt;)&#60;/p&#62;
&#60;p&#62;------------------------------------------------------------------&#60;/p&#62;
&#60;p&#62;Adn this is what I have done before that so far..(http://www.kriesi.at/support/topic/comments-in-the-portfolio)&#60;/p&#62;
&#60;p&#62;-------------------------------------------------------&#60;br /&#62;
You wrote:&#60;br /&#62;
1/ in single-portfolio.php replace following code&#60;br /&#62;
:&#60;br /&#62;
//show related posts based on categories if there are any&#60;br /&#62;
get_template_part( 'includes/related-portfolio-posts');&#60;/p&#62;
&#60;p&#62;with&#60;/p&#62;
&#60;p&#62;//show related posts based on categories if there are any&#60;br /&#62;
get_template_part( 'includes/related-portfolio-posts');&#60;/p&#62;
&#60;p&#62;//wordpress function that loads the comments template &#34;comments.php&#34;&#60;br /&#62;
comments_template( '/includes/comments.php');&#60;/p&#62;
&#60;p&#62;------------------------------------------------------------------&#60;/p&#62;
&#60;p&#62;what am I missing?&#60;/p&#62;
&#60;p&#62;/ thanks&#60;br /&#62;
john
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
