<?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>ThemeShaper Forums Tag: thematic_nav_below();</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Mon, 20 May 2013 04:50:44 +0000</pubDate>

<item>
<title>helgatheviking on "How to disable The Loop if paged &#62; 1"</title>
<link>http://themeshaper.com/forums/topic/how-to-disable-the-loop-if-paged-gt-1#post-19196</link>
<pubDate>Tue, 15 Feb 2011 16:17:30 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">19196@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;you should be able to wrap the whole #post div in the conditional&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(!is_paged()){
  //copy in all the div&#38;#39;s code
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>jonnycj on "How to disable The Loop if paged &#62; 1"</title>
<link>http://themeshaper.com/forums/topic/how-to-disable-the-loop-if-paged-gt-1#post-19195</link>
<pubDate>Tue, 15 Feb 2011 14:48:16 +0000</pubDate>
<dc:creator>jonnycj</dc:creator>
<guid isPermaLink="false">19195@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;OK so the following amendment to the proper page template does the trick to only display page content on the first 'News' page but there is undoubtably a more elegant/effecient way of doing it using only one instance of &#60;code&#62;if(!is_paged()){}&#60;/code&#62; rather than my four !&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;post-&#38;lt;?php the_ID();
					echo &#38;#39;&#38;quot; &#38;#39;;
					if (!(THEMATIC_COMPATIBLE_POST_CLASS)) {
						post_class();
						echo &#38;#39;&#38;gt;&#38;#39;;
					} else {
						echo &#38;#39;class=&#38;quot;&#38;#39;;
						thematic_post_class();
						echo &#38;#39;&#38;quot;&#38;gt;&#38;#39;;
					}

	                // creating the post header
	                if(!is_paged()) {
					thematic_postheader();}

	                ?&#38;gt;

					&#38;lt;div class=&#38;quot;entry-content&#38;quot;&#38;gt;

	                    &#38;lt;?php
	                    if(!is_paged()) {
	                    the_content(); }

						if(!is_paged()) {
	                    wp_link_pages(&#38;quot;\t\t\t\t\t&#38;lt;div class=&#38;#39;page-link&#38;#39;&#38;gt;&#38;quot;.__(&#38;#39;Pages: &#38;#39;, &#38;#39;thematic&#38;#39;), &#38;quot;&#38;lt;/div&#38;gt;\n&#38;quot;, &#38;#39;number&#38;#39;);}

	                    if(!is_paged()) {
						edit_post_link(__(&#38;#39;Edit&#38;#39;, &#38;#39;thematic&#38;#39;),&#38;#39;&#38;lt;span class=&#38;quot;edit-link&#38;quot;&#38;gt;&#38;#39;,&#38;#39;&#38;lt;/span&#38;gt;&#38;#39;); } ?&#38;gt;

					&#38;lt;/div&#38;gt;&#38;lt;!-- .entry-content --&#38;gt;
				&#38;lt;/div&#38;gt;&#38;lt;!-- #post --&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks again for the input
&#60;/p&#62;</description>
</item>
<item>
<title>jonnycj on "How to disable The Loop if paged &#62; 1"</title>
<link>http://themeshaper.com/forums/topic/how-to-disable-the-loop-if-paged-gt-1#post-19194</link>
<pubDate>Tue, 15 Feb 2011 14:17:30 +0000</pubDate>
<dc:creator>jonnycj</dc:creator>
<guid isPermaLink="false">19194@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;You are right Helga, I am not sure why I am using this rather than page.php as a base for the template.&#60;br /&#62;
I have used your code however and it works just like that so I am naturally very happy to start with !&#60;br /&#62;
Now that I look at it page.php is indeed very (very) different and I am wondering what the implications are of me using what was essentially a copy of the index page as a basis for my template. I am certainly not sure how to adjust the code above to fit but I will try and post back.&#60;/p&#62;
&#60;p&#62;Thanks once again.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "How to disable The Loop if paged &#62; 1"</title>
<link>http://themeshaper.com/forums/topic/how-to-disable-the-loop-if-paged-gt-1#post-19192</link>
<pubDate>Tue, 15 Feb 2011 10:10:39 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">19192@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;ok- i think i follow you now.  first, though, i am still not sure why you are using thematic_loop() ?  what template did you copy to create your new template?  i probably would have started w/ a copy of page.php, but if it works, it works.&#60;/p&#62;
&#60;p&#62;what if you wrap thematic_loop in a conditional tag?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(!is_paged()){
  thematic_loop();
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;a href=&#34;http://codex.wordpress.org/Conditional_Tags&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Conditional_Tags&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;in theory it should now only show on the first page (which is NOT paged), but idk if this will work b/c the 2nd query might be monkeying things up.  i usually prefer to use get_posts for a secondary loop just so that i don't mess w/ the query object.
&#60;/p&#62;</description>
</item>
<item>
<title>jonnycj on "How to disable The Loop if paged &#62; 1"</title>
<link>http://themeshaper.com/forums/topic/how-to-disable-the-loop-if-paged-gt-1#post-19190</link>
<pubDate>Tue, 15 Feb 2011 09:56:14 +0000</pubDate>
<dc:creator>jonnycj</dc:creator>
<guid isPermaLink="false">19190@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hello guys,&#60;/p&#62;
&#60;p&#62;To try and clarify...&#60;/p&#62;
&#60;p&#62;I have created a page template. I want this page to display the content from a given page as well as the posts from a specified category.&#60;/p&#62;
&#60;p&#62;So I create a new page say 'News' in Wordpress and specify it uses this template.&#60;br /&#62;
Using the following code inside this template file I bring in the page content (loop 1) and the posts (loop 2) - I have relabelled the code for clarity:  &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;content&#38;quot;&#38;gt;

&#38;lt;?php
// loop 1 brings in the page content
thematic_indexloop();
?&#38;gt;

//loop 2 brings in 5 posts per page from the category &#38;#39;survivorsnews&#38;#39;
&#38;lt;?php $wp_query = null; ?&#38;gt;
&#38;lt;?php $wp_query = new WP_Query(&#38;#39;category_name=survivorsnews&#38;#38;posts_per_page=5&#38;#38;paged=&#38;#39;.$paged ); ?&#38;gt;
&#38;lt;?php while ( $wp_query-&#38;gt;have_posts() ) : $wp_query-&#38;gt;the_post(); ?&#38;gt;

&#38;lt;div id=&#38;quot;post-&#38;lt;?php the_ID() ?&#38;gt;&#38;quot; class=&#38;quot;&#38;lt;?php thematic_post_class() ?&#38;gt;&#38;quot;&#38;gt;
&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;
&#38;lt;h3 class=&#38;quot;entry-title&#38;quot;&#38;gt;&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/h3&#38;gt;
&#38;lt;?php the_excerpt(); ?&#38;gt;
&#38;lt;?php thematic_postfooter(); ?&#38;gt;
&#38;lt;/div&#38;gt;&#38;lt;!-- .post --&#38;gt;

&#38;lt;?php endwhile; ?&#38;gt;
&#38;lt;?php	thematic_nav_below(); ?&#38;gt;

&#38;lt;/div&#38;gt;&#38;lt;!-- #content --&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This code (from Gene :-)) works very well and enables pagination so that my 20 posts are split over 4 'News' pages with 5 posts per page. Thematic nav below allows users to click between the pages.&#60;br /&#62;
The issue is that whilst I want Loop 1 (the page content) on the first of these four 'News' pages I do not want it on pages 2-4.&#60;br /&#62;
So I had imagined that what I need is to build the code above into a conditional statement which says something along the lines of &#38;lt;if $paged is equal to or greater than 2, display only Loop2 else display Loop 1 and Loop 2&#38;gt;. &#60;/p&#62;
&#60;p&#62;This is what I have not managed to do so far :-) So any help would be hugely appreciated !&#60;/p&#62;
&#60;p&#62;Thanks to both of you for the plugin suggestion I will install it
&#60;/p&#62;</description>
</item>
<item>
<title>Jonny Janiero on "How to disable The Loop if paged &#62; 1"</title>
<link>http://themeshaper.com/forums/topic/how-to-disable-the-loop-if-paged-gt-1#post-19176</link>
<pubDate>Tue, 15 Feb 2011 01:02:50 +0000</pubDate>
<dc:creator>Jonny Janiero</dc:creator>
<guid isPermaLink="false">19176@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;@jonnycj - i tried to get to grips with question#1, but dont fully understand. if you could break it down further, someone may be able to help.&#60;/p&#62;
&#60;p&#62;as for #2, helga is right. thematic is already to go with wp pagenavi plugin, so just install and you are good to go. in the plugin setting you can disable the stylesheet from loading.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "How to disable The Loop if paged &#62; 1"</title>
<link>http://themeshaper.com/forums/topic/how-to-disable-the-loop-if-paged-gt-1#post-19158</link>
<pubDate>Mon, 14 Feb 2011 09:51:05 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">19158@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;don't know about #1, but #2 you are looking for the wp_pagenavi plugin
&#60;/p&#62;</description>
</item>
<item>
<title>jonnycj on "How to disable The Loop if paged &#62; 1"</title>
<link>http://themeshaper.com/forums/topic/how-to-disable-the-loop-if-paged-gt-1#post-19157</link>
<pubDate>Mon, 14 Feb 2011 09:30:00 +0000</pubDate>
<dc:creator>jonnycj</dc:creator>
<guid isPermaLink="false">19157@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I am using the following code (thanks again to Gene) to display posts from a specific category underneath static page content. There are a lot of posts so I have them 5 to a page with multiple pages. In order to do this there is the standard thematic index Loop to display the static page content, and a second loop to show the posts within the selected category:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;content&#38;quot;&#38;gt;

		&#38;lt;?php
		// the action hook creating the index loop ?
            	thematic_indexloop();
		?&#38;gt;

		&#38;lt;?php $wp_query = null; ?&#38;gt;
		&#38;lt;?php $wp_query = new WP_Query(&#38;#39;category_name=survivorsnews&#38;#38;posts_per_page=5&#38;#38;paged=&#38;#39;.$paged ); ?&#38;gt;
                &#38;lt;?php while ( $wp_query-&#38;gt;have_posts() ) : $wp_query-&#38;gt;the_post(); ?&#38;gt;

                &#38;lt;div id=&#38;quot;post-&#38;lt;?php the_ID() ?&#38;gt;&#38;quot; class=&#38;quot;&#38;lt;?php thematic_post_class() ?&#38;gt;&#38;quot;&#38;gt;
		&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;
	    	&#38;lt;h3 class=&#38;quot;entry-title&#38;quot;&#38;gt;&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/h3&#38;gt;
				&#38;lt;?php the_excerpt(); ?&#38;gt;
				&#38;lt;?php thematic_postfooter(); ?&#38;gt;
			&#38;lt;/div&#38;gt;&#38;lt;!-- .post --&#38;gt;

			&#38;lt;?php endwhile; ?&#38;gt;
			&#38;lt;?php	thematic_nav_below(); ?&#38;gt;

			&#38;lt;/div&#38;gt;&#38;lt;!-- #content --&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This works great and enables basic pagination so that my posts are displayed across multiple pages.&#60;/p&#62;
&#60;p&#62;I have two questions.&#60;/p&#62;
&#60;p&#62;1) Is it possible to disable the first thematic index Loop on all pages created by this code except page 1, where I want it as an introduction ? I imagine it is something like if $paged &#38;gt;1 then do not show index Loop but my php is just not up to structuring this so it actually works !&#60;/p&#62;
&#60;p&#62;2) Secondly is there a more sophisticated form of thematic_nav_below(); which allows users to see how many pages there are in total and therefore click between them ? (so 20 posts produces 4 pages labeled page 1, page 2, page 3, page 4, as we see say in Google search results).&#60;/p&#62;
&#60;p&#62;Any help would be greatly appreciated&#60;/p&#62;
&#60;p&#62;Jon
&#60;/p&#62;</description>
</item>

</channel>
</rss>
