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 postsThis 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.
The topic ‘Next button, help needed!’ is closed to new replies.