<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1-alpha-2539" -->
<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>WordPress.com Forums &#187; Topic: Pagination not working on page of posts</title>
		<link>http://en.forums.wordpress.com/topic/pagination-not-working-on-page-of-posts</link>
		<description>WordPress.com Forums &#187; Topic: Pagination not working on page of posts</description>
		<language>en</language>
		<pubDate>Thu, 20 Jun 2013 12:24:24 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1-alpha-2539</generator>
				<atom:link href="http://en.forums.wordpress.com/rss/topic/pagination-not-working-on-page-of-posts" rel="self" type="application/rss+xml" />

		<item>
			<title>evanzyl on "Pagination not working on page of posts"</title>
			<link>http://en.forums.wordpress.com/topic/pagination-not-working-on-page-of-posts#post-512437</link>
			<pubDate>Wed, 29 Sep 2010 17:36:09 +0000</pubDate>
			<dc:creator>evanzyl</dc:creator>
			<guid isPermaLink="false">512437@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>thank you
</p>
]]></description>
					</item>
		<item>
			<title>auxclass on "Pagination not working on page of posts"</title>
			<link>http://en.forums.wordpress.com/topic/pagination-not-working-on-page-of-posts#post-512400</link>
			<pubDate>Wed, 29 Sep 2010 15:08:11 +0000</pubDate>
			<dc:creator>auxclass</dc:creator>
			<guid isPermaLink="false">512400@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>No we can't really help you here, but we can suggest where you can get the help you need.</p>
<p>Your site is not hosted on WordPress.COM, this site is for support of sites hosted on WordPress.COM. You should address your questions to WordPress.ORG the keepers of the software you are using: <a href="http://wordpress.org/support/" rel="nofollow">http://wordpress.org/support/</a></p>
<p>For more on the difference: <a href="http://support.wordpress.com/com-vs-org/" rel="nofollow">http://support.wordpress.com/com-vs-org/</a>
</p>
]]></description>
					</item>
		<item>
			<title>evanzyl on "Pagination not working on page of posts"</title>
			<link>http://en.forums.wordpress.com/topic/pagination-not-working-on-page-of-posts#post-512378</link>
			<pubDate>Wed, 29 Sep 2010 13:47:19 +0000</pubDate>
			<dc:creator>evanzyl</dc:creator>
			<guid isPermaLink="false">512378@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>Hi</p>
<p>I've created a custom page display posts for a specific category.  But the pagination doesn't work.  When you click on "next" the link looks like this: <a href="http://localhost:8080/meles/page/2/" rel="nofollow">http://localhost:8080/meles/page/2/</a> but it's still displaying the same posts as on the first page.  Can anybody please help???</p>
<p>My code looks like this:<br />
&#60;?php<br />
/*<br />
Template Name: PageOfPosts<br />
*/</p>
<p>get_header(); ?&#62;</p>
<p>&#60;div id="page-content" class="narrowcolumn"&#62;</p>
<p>&#60;?php</p>
<p>  $cat = 1;<br />
  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;<br />
  $post_per_page = 2; // -1 shows all posts<br />
  //$do_not_show_stickies = 1; // 0 to show stickies<br />
  $args=array(<br />
    'category__in' =&#62; array($cat),<br />
    'orderby' =&#62; 'date',<br />
    'order' =&#62; 'DESC',<br />
    'paged' =&#62; $paged,<br />
    'showposts' =&#62; $post_per_page<br />
    //'caller_get_posts' =&#62; $do_not_show_stickies<br />
  );<br />
  $temp = $wp_query;  // assign orginal query to temp variable for later use<br />
  $wp_query = null;<br />
  $wp_query = new WP_Query($args);</p>
<p>   if( have_posts() ) :<br />
		while ($wp_query-&#62;have_posts()) : $wp_query-&#62;the_post(); ?&#62;<br />
	    &#60;div id="post-&#60;?php the_ID(); ?&#62;" class="homepage-posts"&#62;<br />
        &#60;h2&#62;<a>" rel="bookmark" title="Permanent Link to &#60;?php the_title_attribute(); ?&#62;"&#62;&#60;?php the_title(); ?&#62;</a>&#60;/h2&#62;</p>
<p>        &#60;?php<br />
					$images = get_children( array( 'post_parent' =&#62; $post-&#62;ID, 'post_type' =&#62; 'attachment', 'post_mime_type' =&#62; 'image', 'orderby' =&#62; 'menu_order', 'order' =&#62; 'ASC', 'numberposts' =&#62; 999 ) );<br />
					if ( $images ) :<br />
						$total_images = count( $images );<br />
						$image = array_shift( $images );<br />
						$image_img_tag = wp_get_attachment_image( $image-&#62;ID, 'thumbnail' );<br />
				?&#62;<br />
						&#60;div class="homepage-thumb"&#62;<br />
							<a>"&#62;&#60;?php echo $image_img_tag; ?&#62;</a><br />
						&#60;/div&#62;&#60;!-- .gallery-thumb --&#62;<br />
						&#60;div class="homepage-summary"&#62;<br />
							&#60;?php the_excerpt( __( 'Read more &#60;span class="meta-nav"&#62;&#8594;&#60;/span&#62;', 'twentyten' ) ); ?&#62;<br />
							&#60;?php wp_link_pages( array( 'before' =&#62; '&#60;div class="page-link"&#62;' . __( 'Pages:', 'twentyten' ), 'after' =&#62; '&#60;/div&#62;' ) ); ?&#62;<br />
						&#60;/div&#62;&#60;!-- .entry-content --&#62;<br />
				&#60;?php else : ?&#62;<br />
		            &#60;div class="homepage-summary-full"&#62;<br />
						&#60;?php the_excerpt( __( 'Read more &#60;span class="meta-nav"&#62;&#8594;&#60;/span&#62;', 'twentyten' ) ); ?&#62;<br />
						&#60;?php wp_link_pages( array( 'before' =&#62; '&#60;div class="page-link"&#62;' . __( 'Pages:', 'twentyten' ), 'after' =&#62; '&#60;/div&#62;' ) ); ?&#62;<br />
					&#60;/div&#62;&#60;!-- .entry-content --&#62;<br />
                &#60;?php endif; ?&#62;</p>
<p>      &#60;/div&#62;<br />
    &#60;?php endwhile; ?&#62;</p>
<p>    &#60;div class="navigation"&#62;<br />
      &#60;div class="alignright"&#62;&#60;?php previous_posts_link('Newer Entries »') ?&#62;&#60;/div&#62;<br />
      &#60;div class="alignleft"&#62;&#60;?php next_posts_link('« Older Entries') ?&#62;&#60;/div&#62;</p>
<p>    &#60;/div&#62;<br />
  &#60;?php else : ?&#62;</p>
<p>		&#60;h2 class="center"&#62;Not Found&#60;/h2&#62;<br />
		&#60;p class="center"&#62;Sorry, but you are looking for something that isn't here.&#60;/p&#62;<br />
		&#60;?php get_search_form(); ?&#62;</p>
<p>	&#60;?php endif; </p>
<p>	 $wp_query = $temp;  //reset back to original query</p>
<p>?&#62;</p>
<p>	&#60;/div&#62;</p>
<p>&#60;?php get_sidebar(); ?&#62;</p>
<p>&#60;?php get_footer(); ?&#62;
</p>
]]></description>
					</item>

	</channel>
</rss>
