Forums

new posts not showing on main page (3 posts)

  1. urwen
    Member
    Posted 3 years ago #

    Hi all,

    i have a really strange problem. I had to add manually a user to the database, and im not sure if since then, when i publish a new post it is not showed on main page. They are here and even they are shown in the right block on latest posts... but they don´t want to appear on the main.

    The curious thing is here. When i connect with a registered user... the posts appears on / (on the main page). I also don´t know if affects but the problem also seems to appear on the last update (2.6.1) What can be happen?

    Thanks a lot in advance

  2. urwen
    Member
    Posted 3 years ago #

    no one has any idea about the problem?

  3. mwolstat
    Member
    Posted 2 years ago #

    I was having the same problem, and I fixed it like this.

    In my archive.php file, I found an extraneous call to the_post() function, which was essentially 'using up' the first post on any page.
    --
    the_post();

    while (have_posts()) : the_post();
    include (TEMPLATEPATH . '/post.php');
    endwhile;
    --

    Once I deleted the solo the_post() call, all 10 posts would get formatted with the post.php template.

Topic Closed

This topic has been closed to new replies.

About this Topic