Forums

[resolved] paging.. maybe simple but can't get working. (6 posts)

  1. tecnosh
    Member
    Posted 3 years ago #

    hello guys.

    I have a theme that seems to not make any paging, already try the standard navigation links "previous" and "next" but i always get the homepage.

    tecnosh.com/page/2 or tecnosh.com/page/3 its always the same page.

    My main loop is :

    <?php get_header(); ?>
    <div id="content" class="container">
    <div id="front" class="column_main">

    <?php query_posts('showposts=8'); ?>
    <?php while (have_posts()) : the_post(); ?>

    I had read alot of question like this but no one worked out on my theme. Already check the archive and archives pages but everything seems ok. Can someone tell me how i get this working? Thanks.

  2. Saurus
    Member
    Posted 3 years ago #

    Check the appropriate php files to make sure those particular calls are not commented out and are available in that theme. If they are - uncomment them - or add them if necessary.

  3. tecnosh
    Member
    Posted 3 years ago #

    hey Saurus thanks for you reply.

    Hm, i have this on archives.php

    <?php get_header(); ?>
    <div id="content" class="container">
    <div id="front" class="column_main">
    <div class="category_header">
    <h1>Archives</h1>
    </div>
    <?php query_posts('showposts=0'); ?> <!-- List all entries ever written -->

      <?php while (have_posts()) : the_post(); ?>

    and can't find any problem.. the " 'showposts=0') " don't seems to be the cause of the lack of paging.

  4. tecnosh
    Member
    Posted 3 years ago #

    tried this: http://weblogtoolscollection.com/archives/2008/04/19/paging-and-custom-wordpress-loops/

    still showing the home instante the next posts on page 2 and the next on 3, etc.

  5. tecnosh
    Member
    Posted 3 years ago #

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
    <?php query_posts('showposts=8&paged=$paged'); ?>

    this on index, still not working.
    any one with ideas?

  6. freshifreshy
    Member
    Posted 2 years ago #

    I was having a similar problem. Got a 404 error every time I tried to go to page 2.

    I noticed I was linking to the blog archive like this:

    http://www.your-url.com/blog

    The first page returned fine. Then I realized my permalink structure was /%category%/%postname%/

    I changed the link to this and the paging started to work:

    http://www.your-url.com/category/blog

    Hopefully this will help someone.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags