Support » Fixing WordPress » Post bulk nagivation problem (/page/2)

Viewing 12 replies - 1 through 12 (of 12 total)
  • Help?

    Help?

    Dave

    (@miner)

    I am having the exact same problem for a couple of my clients. Did you ever get a response? I cannot find a solution to this.

    Thanks

    moshu

    (@moshu)

    Miner, what version of WP (since this is a half year old thread)?

    Dave

    (@miner)

    Currently running Version 2.0.3

    moshu

    (@moshu)

    (In that branch the latest is 2.0.8 – always good to upgrade: security etc.)

    Did it ever work? Does it work if you switch to the default or classic theme?

    filination

    (@filination)

    It was a bug in the theme I was using (Pressrow) that was defining the number of posts to show on the main page by code. I got rid of that, and walla – it was working.

    Dave

    (@miner)

    It works with classic theme, but it does not have the blog rooted at /blog

    Site: http://skmurphy.com/blog/

    Page 2: http://skmurphy.com/blog/page/2/

    shows the same posts as page 1. It continues the paging until the end (clicking previous posts until on page 8), so I know the paging is working, but it is displaying only the first page of entries on every page.

    moshu

    (@moshu)

    I am confused by this:
    It works with classic theme, but it does not have the blog rooted at /blog

    Working measn it shows the right posts on page 2?

    What do you mean by “not rooted”?

    Dave

    (@miner)

    Ok, well for this theme, we have the blog accessed through a page called /blog. this is because the site has many other pages and the blog is a subsection of the site.

    I think I found the offending code inside template blog.php (this is the template that the /blog page uses and it subsequently includes index.php), but I am not sure what to change it to.

    <?php
    /*
    Template Name: Blog
    */
    ?>

    <?php query_posts(‘cat=-0’); //gets all posts
    load_template( TEMPLATEPATH . ‘/index.php’); //loads index
    ?>

    ————————

    The line: query_posts(‘cat=-0’);
    is causing the problem and defeating the paging code I think.

    moshu

    (@moshu)

    I stopped reading when saw this:
    Ok, well for this theme, we have the blog accessed through a page called /blog.
    With Pages it will not work.

    Dave

    (@miner)

    Well thanks anyway, I guess…

    It appears that it DOES work under pages, just needed to pass on the paged variable on in the query mod. Changed one line:

    query_posts(‘cat=-0&paged=’.$paged); //gets all posts and preserves paging

    So it works 🙂

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Post bulk nagivation problem (/page/2)’ is closed to new replies.