Title: Next button, help needed!
Last modified: August 18, 2016

---

# Next button, help needed!

 *  [gerlof](https://wordpress.org/support/users/gerlof/)
 * (@gerlof)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/next-button-help-needed/)
 * Hi i need help, i search for hour on this forum used some plugins but still not
   got it working,
 * I’m running WP 2.0.7 made a sort of portfolio. Its showing the last 10 post with
   a image. But i want a next button.
 * I used everything, like <?php posts_nav_link(); ?> etc
    inside the loop outside
   the loop.
 * My page structure is url/portfolio/websites
 * and for permalinks i use: /%category%/%postname%/
 * When i use next, it goes /url/portfolio/websites/page/2/
    But still showing the
   same 10 post and doenst skip to next 10 posts
 * This is the code for my websites.php:
 * <?php
    /*
 * Template Name: websites
 * */
    ?> <?php get_header();?> <?php include(“menu.php”); ?> <div id=”main”>
 * <div class=”main-style” id=”main-inside-top”>Portfolio – Websites</div>
    <br 
   clear=”all” /> <div id=”main-inside-bottom”> <div id=”screenshot_list”> <div 
   class=”navigation”> </div> <?php query_posts(‘category_name=Websites&showposts
   =9’); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div
   class=”screenshot_wrapper”> <div class=”screenshot_image”> ” rel=”lightbox” title
   =”Title: <?php the_title(); ?>”><?php echo c2c_get_custom(‘screenshotsmall’, ‘
   <img class=”screenshotsmall” src=”‘, ‘” />’, ‘blank’); ?> </div> <div class=”
   screenshot_info”>More info </div> </div> <?php endwhile; else: ?> <?php _e(‘Sorry,
   no portfolio added!’); ?> <?php endif; ?> <div style=”text-align:center;”> <?
   php posts_nav_link(‘ · ‘, ‘previous page’, ‘next page’); ?> </div>
 * What am i doing wrong? Im getting nuts for not finding the solution,
 * Very much thanks hope somebody can help.

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

 *  Thread Starter [gerlof](https://wordpress.org/support/users/gerlof/)
 * (@gerlof)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/next-button-help-needed/#post-506726)
 * Anyone? im not bugging :p but need a reply asap
 *  Thread Starter [gerlof](https://wordpress.org/support/users/gerlof/)
 * (@gerlof)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/next-button-help-needed/#post-506728)
 * I found out that i cant use the post_nav_link in non template pages, like i got
   websites.php for my portfolio what is listing posts showing in example above 
   ^.
 * How can i fix this or use hack to show the Next button :/
 *  Thread Starter [gerlof](https://wordpress.org/support/users/gerlof/)
 * (@gerlof)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/next-button-help-needed/#post-506818)
 * Thanks for wp 2.1 :),
 * Im still looking for a solution for my problem. As described above. Looked around
   in the codex and on inet. But really cant find it. Thinking of making a plugin
   but it takes time.
 * So is anyone out there who knows the solution.
 * Greetz,

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

The topic ‘Next button, help needed!’ is closed to new replies.

## Tags

 * [next](https://wordpress.org/support/topic-tag/next/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 1 participant
 * Last reply from: [gerlof](https://wordpress.org/support/users/gerlof/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/next-button-help-needed/#post-506818)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
