<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blogging and scraping &#187; pagenavi</title>
	<atom:link href="http://www.tsnpc.com/tag/pagenavi/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tsnpc.com</link>
	<description></description>
	<lastBuildDate>Tue, 13 Jul 2010 10:27:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>$ The use of pagenavi plugin $</title>
		<link>http://www.tsnpc.com/the-use-of-pagenavi-plugin/</link>
		<comments>http://www.tsnpc.com/the-use-of-pagenavi-plugin/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 14:42:15 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[pagenavi]]></category>

		<guid isPermaLink="false">http://tsnpc.com/?p=6</guid>
		<description><![CDATA[After the activation and installation of pagenavi, there is a need to modify the files of index.php and categary.php, and this is a little difficult to the blogger. Take a index.php in a theme for example, The original file isï¼š &#60;?php get_header(); ?&#62; &#60;div id=â€containerâ€&#62; &#60;?php if(have_posts()) : while(have_posts()) : the_post(); ?&#62; &#60;div class=â€postâ€ id=â€post-&#60;?php [...]]]></description>
			<content:encoded><![CDATA[<p>After the activation and installation of pagenavi, there is a need to modify the files of index.php and categary.php, and this is a little difficult to the blogger.</p>
<p>Take a index.php in a theme for example,</p>
<p>The original file isï¼š</p>
<p>&lt;?php get_header(); ?&gt;<br />
&lt;div id=â€containerâ€&gt;<br />
&lt;?php if(have_posts()) : while(have_posts()) : the_post(); ?&gt;<br />
&lt;div class=â€postâ€ id=â€post-&lt;?php the_ID(); ?&gt;â€&gt;<br />
&lt;h2 class=â€title_linkâ€&gt;&lt;a href=â€&lt;?php the_permalink(); ?&gt;â€ title=â€&lt;?php the_title(); ?&gt;â€&gt;<br />
&lt;?php the_title(); ?&gt;<br />
&lt;/a&gt;&lt;/h2&gt;<br />
&lt;div class=â€smallfontâ€&gt;&lt;?php the_time(â€™F jS, Yâ€™) ?&gt; &lt;?php _e(â€™byâ€™); ?&gt; &lt;?php the_author(); ?&gt;&lt;/div&gt;<br />
&lt;div class=â€entryâ€&gt;<br />
&lt;?php the_content(); ?&gt;<br />
&lt;div class=â€postmetadataâ€&gt;<br />
&lt;div class=â€ipost_tagâ€&gt;Filed under :<br />
&lt;?php the_category(â€™, â€˜) ?&gt;<br />
&lt;/div&gt;<br />
&lt;div class=â€ipost_commentâ€&gt;&lt;img src=â€&lt;?php bloginfo(â€™stylesheet_directoryâ€™); ?&gt;/images/comment.gifâ€ width=â€16â€³ height=â€16â€³ alt=â€tagâ€ align=â€topâ€ /&gt;<br />
&lt;?php comments_popup_link(â€™0 Comment &amp;#187;â€™, â€˜1 Comment &amp;#187;â€™, â€˜% Comments &amp;#187;â€™); ?&gt;<br />
&lt;?php edit_post_link(â€™Editâ€™, â€˜ &amp;#124; â€˜, â€); ?&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php endwhile; ?&gt;<br />
&lt;div class=â€navigationâ€&gt;<br />
&lt;div id=â€nav_leftâ€&gt;<br />
&lt;?php posts_nav_link(â€™ â€˜, â€˜&amp;laquo; Previous Pageâ€™, â€); ?&gt;<br />
&lt;/div&gt;<br />
&lt;div id=â€nav_rightâ€&gt;<br />
&lt;?php posts_nav_link(â€™ â€˜, â€, â€˜Next Page &amp;raquo;â€™); ?&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;div class=â€postâ€ id=â€post-&lt;?php the_ID(); ?&gt;â€&gt;<br />
&lt;h2&gt;<br />
&lt;?php _e(â€Not Foundâ€); ?&gt;<br />
&lt;/h2&gt;<br />
&lt;/div&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_footer(); ?&gt;</p>
<p>The following are the modified codesï¼Œplease pay attention to the uderlined lines in the section of &lt;div class=â€navigationâ€&gt;ï¼š</p>
<p>&lt;?php get_header(); ?&gt;<br />
&lt;div id=â€containerâ€&gt;<br />
&lt;?php if(have_posts()) : while(have_posts()) : the_post(); ?&gt;<br />
&lt;div class=â€postâ€ id=â€post-&lt;?php the_ID(); ?&gt;â€&gt;<br />
&lt;h2 class=â€title_linkâ€&gt;&lt;a href=â€&lt;?php the_permalink(); ?&gt;â€ title=â€&lt;?php the_title(); ?&gt;â€&gt;<br />
&lt;?php the_title(); ?&gt;<br />
&lt;/a&gt;&lt;/h2&gt;<br />
&lt;div class=â€smallfontâ€&gt;&lt;?php the_time(â€™F jS, Yâ€™) ?&gt; &lt;?php _e(â€™byâ€™); ?&gt; &lt;?php the_author(); ?&gt;&lt;/div&gt;<br />
&lt;div class=â€entryâ€&gt;<br />
&lt;?php<br />
if (is_single()) {<br />
the_content();<br />
}<br />
else {//no content, nothing.<br />
}<br />
?&gt;<br />
&lt;div class=â€postmetadataâ€&gt;<br />
&lt;div class=â€ipost_tagâ€&gt;Filed under :<br />
&lt;?php the_category(â€™, â€˜) ?&gt;<br />
&lt;/div&gt;<br />
&lt;div class=â€ipost_commentâ€&gt;&lt;img src=â€&lt;?php bloginfo(â€™stylesheet_directoryâ€™); ?&gt;/images/comment.gifâ€ width=â€16â€³ height=â€16â€³ alt=â€tagâ€ align=â€topâ€ /&gt;<br />
&lt;?php comments_popup_link(â€™0 Comment &amp;#187;â€™, â€˜1 Comment &amp;#187;â€™, â€˜% Comments &amp;#187;â€™); ?&gt;<br />
&lt;?php edit_post_link(â€™Editâ€™, â€˜ &amp;#124; â€˜, â€); ?&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;?php endwhile; ?&gt;<br />
<span style="text-decoration: underline;">&lt;div class=â€navigationâ€&gt;</span></p>
<p><span style="text-decoration: underline;">&lt;?php if(function_exists(â€™wp_pagenaviâ€™)) : ?&gt;<br />
&lt;?php wp_pagenavi() ?&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;div id=â€nav_leftâ€&gt;<br />
&lt;?php posts_nav_link(â€™ â€˜, â€˜&amp;laquo; Previous Pageâ€™, â€); ?&gt;<br />
&lt;/div&gt;<br />
&lt;div id=â€nav_rightâ€&gt;<br />
&lt;?php posts_nav_link(â€™ â€˜, â€, â€˜Next Page &amp;raquo;â€™); ?&gt;</span><span style="text-decoration: underline;"> </span></p>
<p><span style="text-decoration: underline;">&lt;/div&gt;</span></p>
<p><span style="text-decoration: underline;">&lt;?php endif; ?&gt;<br />
&lt;/div&gt;</span><br />
&lt;?php else : ?&gt;<br />
&lt;div class=â€postâ€ id=â€post-&lt;?php the_ID(); ?&gt;â€&gt;<br />
&lt;h2&gt;<br />
&lt;?php _e(â€Not Foundâ€); ?&gt;<br />
&lt;/h2&gt;<br />
&lt;/div&gt;<br />
&lt;?php endif; ?&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_sidebar(); ?&gt;<br />
&lt;/div&gt;<br />
&lt;?php get_footer(); ?&gt;<br />
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none">Related Blogs on <b>pagenavi</b></li>
<li><a href="http://www.catswhocode.com/blog/blogging/wordpress/how-to-integrate-a-pagination-in-your-wordpress-theme-890">How to: Integrate a pagination in your WordPress theme</a></li>
<li><a href="http://www.themesr.com/2008/08/plugin-wp-pagenavi-seo/">Plugin: WP-PageNavi SEO</a></li>
<li><a href="http://themelib.com/2008/07/wp-page-navi-advanced-paging-navigation-for-your-wordpress-blog/">WP Page Navi &#8211; advanced paging navigation for your WordPress blog</a></li>
<li><a href="http://wpchina.org/pagenavi-wordpress-plugin-simplified-chinese-version-368/">WP-<b>PageNavi</b> ç®€ä½“ä¸­æ–‡ç‰ˆ</a></li>
</ul>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none">Related Blogs on <b>wordpress</b></li>
<li><a href="http://www.toptut.com/2008/10/10/dyne-wordpress-theme-3100-downloads-from-wordpressorg-alone/">Dyne <b>WordPress</b> Theme &#8211; 3100+ downloads from <b>WordPress</b>.org alone</a></li>
<li><a href="http://blog.firetree.net/2008/10/10/remove-textile-from-a-wordpress-blog/">Remove Textile from a <b>WordPress</b> blog</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.tsnpc.com/the-use-of-pagenavi-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

