• James

    (@jameskirkby)


    Since I upgraded to 3.0, I can’t go back to previous pages on the homepage.
    Here is the query I use:
    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=4&showposts=10&paged=$paged"); ?>

    The problem is, I use the exact same query (different category though) for a different page, and the previous page links work fine.

    Has anyone got a fix for this?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=4&posts_per_page=10&paged=$paged"); ?>

    Try once.

    Thread Starter James

    (@jameskirkby)

    No luck there

    site is https://www.rub-a-dub-dubbb.com

    If you click on ‘Blog’ in the main nav bar, the previous pages work fine, and I’ve used the same code for that. It’s just the main page which doesn’t work.

    $args=array(
       'cat'=>4,
       'caller_get_posts'=>1,
       'posts_per_page'=>10,
       'paged'=>$paged,
       );
    query_posts($args);
    Thread Starter James

    (@jameskirkby)

    Could you put that into a <?php... tag for me?

    Not really sure where to put it

    Thanks!

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args=array(
       'cat'=>4,
       'caller_get_posts'=>1,
       'posts_per_page'=>10,
       'paged'=>$paged,
       );
    query_posts($args);
    ?>
    Thread Starter James

    (@jameskirkby)

    Still no luck.

    Could this be a bug in 3.0, as it works on other pages, just not the homepage?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Previous Page link not working’ is closed to new replies.