<?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: Pagination for portfolio</title>
		<link>http://www.kriesi.at/support/topic/pagination-for-portfolio</link>
		<description>Support Forum - Topic: Pagination for portfolio</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 13:41:09 +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/pagination-for-portfolio" rel="self" type="application/rss+xml" />

		<item>
			<title>aostheimer on "Pagination for portfolio"</title>
			<link>http://www.kriesi.at/support/topic/pagination-for-portfolio#post-2210</link>
			<pubDate>Sat, 07 Aug 2010 13:54:29 +0000</pubDate>
			<dc:creator>aostheimer</dc:creator>
			<guid isPermaLink="false">2210@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks for the info.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kriesi on "Pagination for portfolio"</title>
			<link>http://www.kriesi.at/support/topic/pagination-for-portfolio#post-2121</link>
			<pubDate>Fri, 06 Aug 2010 16:28:09 +0000</pubDate>
			<dc:creator>Kriesi</dc:creator>
			<guid isPermaLink="false">2121@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey!&#60;/p&#62;
&#60;p&#62;Unfortunatley it is not possible in cleancut to add a pagination. The general problem is that wordpress 3 custom post types (other than basic posts or pages) only allow certain queries to work. For example it is not possible with basic methods to get portfolio entries from only 2 different categories.&#60;/p&#62;
&#60;p&#62;To add this feature I needed to query all portfolio entries and then sort them with a php function. That leads to the fact that the pagination doesn't work any longer, therefore it was disabled as a whole in cleancut.&#60;/p&#62;
&#60;p&#62;I added it later in avisio but only with a 200 line codefix that is not really applicable to the cleancut theme. Sorry for that.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aostheimer on "Pagination for portfolio"</title>
			<link>http://www.kriesi.at/support/topic/pagination-for-portfolio#post-1987</link>
			<pubDate>Thu, 05 Aug 2010 11:40:05 +0000</pubDate>
			<dc:creator>aostheimer</dc:creator>
			<guid isPermaLink="false">1987@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks, I will wait for the results - I know the entries should show up but you will see that if you have 2 pages with different types of portfolios, only the first one is complete, the second one gets filtered away (due to the pagination).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>James Morrison on "Pagination for portfolio"</title>
			<link>http://www.kriesi.at/support/topic/pagination-for-portfolio#post-1946</link>
			<pubDate>Wed, 04 Aug 2010 17:35:31 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">1946@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;For the pagination page links (page 2 / 3 etc) add this code just before &#60;strong&#62;&#38;lt;!--end main--&#38;gt;&#60;/strong&#62;:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php kriesi_pagination(); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;All Portfolio entries should show up as they are all under the Portfolio post type and this is part of the query_string:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$query_string .= &#38;quot;&#38;amp;post_type=portfolio&#38;quot;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I'll have a play around with this and get back to you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aostheimer on "Pagination for portfolio"</title>
			<link>http://www.kriesi.at/support/topic/pagination-for-portfolio#post-1908</link>
			<pubDate>Wed, 04 Aug 2010 13:16:02 +0000</pubDate>
			<dc:creator>aostheimer</dc:creator>
			<guid isPermaLink="false">1908@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks but still not working as:&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;$post_per_page set to 12 but not links to next pages are displayed&#60;/li&#62;
&#60;li&#62;First page of all portfolio entries (ie all portfolio types should be visible) shows only the first type of portfolio. The second and following types of portfolios disappear. Also when I click on the page with the second type of portfolio it is empty - everything gets paginated away it seems.&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;If I change it back to original code I can see all the portfolio entries again.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>James Morrison on "Pagination for portfolio"</title>
			<link>http://www.kriesi.at/support/topic/pagination-for-portfolio#post-1743</link>
			<pubDate>Mon, 02 Aug 2010 21:13:44 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">1743@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey! &#60;/p&#62;
&#60;p&#62; Sorry, quick typing and I missed a character. This:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$query_string .= &#38;quot;paged=&#38;quot;.$paged;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;should be this:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$query_string .= &#38;quot;&#38;amp;paged=&#38;quot;.$paged;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Let me know how you get on. &#60;/p&#62;
&#60;p&#62; Best regards,&#60;br /&#62;
James
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aostheimer on "Pagination for portfolio"</title>
			<link>http://www.kriesi.at/support/topic/pagination-for-portfolio#post-1697</link>
			<pubDate>Mon, 02 Aug 2010 12:08:36 +0000</pubDate>
			<dc:creator>aostheimer</dc:creator>
			<guid isPermaLink="false">1697@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
this code makes all my entries disappear.&#60;/p&#62;
&#60;p&#62;Set $posts_per_page = 16; btw.&#60;/p&#62;
&#60;p&#62;I changed it back to the old code otherwise all my entries would be offline.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>James Morrison on "Pagination for portfolio"</title>
			<link>http://www.kriesi.at/support/topic/pagination-for-portfolio#post-1620</link>
			<pubDate>Sun, 01 Aug 2010 13:45:50 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">1620@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;The number of posts was originally set to 9999 so that everything would load on one page. You can add pagination and reduce the number of entires you want to show.&#60;/p&#62;
&#60;p&#62;Open up template_portfolio.php and change this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$posts_per_page = 9999;

$query_string =  &#38;quot;posts_per_page=&#38;quot;.$posts_per_page;
$query_string .= &#38;quot;&#38;amp;post_type=portfolio&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$posts_per_page = 9999;

$paged = ( get_query_var(&#38;#39;paged&#38;#39;) ) ? get_query_var(&#38;#39;paged&#38;#39;) : 1;

$query_string =  &#38;quot;posts_per_page=&#38;quot;.$posts_per_page;
$query_string .= &#38;quot;&#38;amp;post_type=portfolio&#38;quot;;
$query_string .= &#38;quot;paged=&#38;quot;.$paged;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Change 9999 to the number of posts you want to display per page, make it divisible by the number of columns you have chosen so it &#34;fits&#34; the page.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aostheimer on "Pagination for portfolio"</title>
			<link>http://www.kriesi.at/support/topic/pagination-for-portfolio#post-1521</link>
			<pubDate>Fri, 30 Jul 2010 15:39:34 +0000</pubDate>
			<dc:creator>aostheimer</dc:creator>
			<guid isPermaLink="false">1521@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
first of all: great work with cleancut.&#60;br /&#62;
I would like to have &#60;strong&#62;pagination&#60;/strong&#62; (page 1, 2, 3, 4) for the portfolio pages as with many portfolio items its gets really slow.&#60;br /&#62;
You got a fast fix for that?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Andreas
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
