• Quicky

    (@quicky)


    Hi guys, I had some problems with my blog yesterday and now I’m kinda stuck with my blog working fine except that it displays ALL of my posts on the first page instead of the first 6 like it says in the Options page.

    To be quite frank, I’m not quite sure where I should be looking in order to track this problem down. Does anybody have an idea where I could look to track this down? Has anyone experienced something like this before?

    In case this could help, let me tell you what my problem was yesterday and how it got solved. Yesterday my blog showed ‘It looks like you haven’t installed WP yet. Try running install.php’ or something along those lines, even though my blog had been running fine on v2.0 for quite some time. I backed up my files and my database and upgraded WP to 2.1.2 but it still gave the same error (although now with a big ‘WordPress’ above the error message. I got in touch with my ISP and they made a new wordpress installation in another folder along with a new wordpress database. I don’t know what else happened, but when I then went to my normal blog webpage linking to the original wordpress installation and database it worked fine, except for the number of posts that it showed (all of them).

    I checked the value in the mysql database and it says ‘6’ posts per page, just like it says in the Options panel in the administration pages. I tried changing it back and forth to no avail. I’m also using exactly the same theme as before.

    Thank you for your help!
    Greetings,
    Tijl Kindt

Viewing 1 replies (of 1 total)
  • Thread Starter Quicky

    (@quicky)

    Well… I found a temporary work-around by replacing
    <?php while (have_posts()) : the_post(); ?>
    in the Main Index Template with

    <?php $my_query = new WP_Query('showposts=6');
    while ($my_query->have_posts()) : $my_query->the_post();
    $do_not_duplicate = $post->ID; ?>

    This seems to get rid of the ‘Previous Entries’ link though, making it impossible to see older posts…

    If anyone has any ideas, then please let me know. Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘Blog showing ALL posts instead of first 6’ is closed to new replies.