Title: afang22's Replies | WordPress.org

---

# afang22

  [  ](https://wordpress.org/support/users/afang22/)

 *   [Profile](https://wordpress.org/support/users/afang22/)
 *   [Topics Started](https://wordpress.org/support/users/afang22/topics/)
 *   [Replies Created](https://wordpress.org/support/users/afang22/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/afang22/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/afang22/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/afang22/engagements/)
 *   [Favorites](https://wordpress.org/support/users/afang22/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Template Pagination WP_Query not working](https://wordpress.org/support/topic/template-pagination-wp_query-not-working/)
 *  Thread Starter [afang22](https://wordpress.org/support/users/afang22/)
 * (@afang22)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/template-pagination-wp_query-not-working/#post-1445814)
 * here is a guide i found that fixed my problem:
 * [http://www.martinish.com/blog/2009/08/how-to-paginate-a-custom-wordpress-query/3/](http://www.martinish.com/blog/2009/08/how-to-paginate-a-custom-wordpress-query/3/)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Template Pagination WP_Query not working](https://wordpress.org/support/topic/template-pagination-wp_query-not-working/)
 *  Thread Starter [afang22](https://wordpress.org/support/users/afang22/)
 * (@afang22)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/template-pagination-wp_query-not-working/#post-1445809)
 * ah, i have identified the problem.
 * i am using my own $my_query instead of the global $wp_query
 * pagination only recognizes $wp_query
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Template Pagination WP_Query not working](https://wordpress.org/support/topic/template-pagination-wp_query-not-working/)
 *  Thread Starter [afang22](https://wordpress.org/support/users/afang22/)
 * (@afang22)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/template-pagination-wp_query-not-working/#post-1445792)
 * does it have anything to do with my WP_Query call. Should i be using query_posts
   instead?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Template Pagination WP_Query not working](https://wordpress.org/support/topic/template-pagination-wp_query-not-working/)
 *  Thread Starter [afang22](https://wordpress.org/support/users/afang22/)
 * (@afang22)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/template-pagination-wp_query-not-working/#post-1445784)
 * yes, the <!– Previous/Next page navigation –> shows in the html source.
 * the only thing i can think of is that i do have the page navigation plugin installed,
   but i am not calling the plugin function on my template.
 * i’m using the default pagination, which i tested to make sure it works on the
   archive page.
 * <?php next_posts_link(‘« Older Entries’) ?>
    <?php previous_posts_link(‘Newer
   Entries »’) ?>
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Template Pagination WP_Query not working](https://wordpress.org/support/topic/template-pagination-wp_query-not-working/)
 *  Thread Starter [afang22](https://wordpress.org/support/users/afang22/)
 * (@afang22)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/template-pagination-wp_query-not-working/#post-1445774)
 * thanks. i tried moving it but it didn’t help. the only reason why i even included
   that $temp variable was because of another post i read.
 * the problem is, the pagination buttons don’t even show up. it’s almost as it 
   doesn’t know there are more posts to be displayed.

Viewing 5 replies - 1 through 5 (of 5 total)