• 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

    (@gerlof)

    Anyone? im not bugging :p but need a reply asap

    Thread Starter gerlof

    (@gerlof)

    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

    (@gerlof)

    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.