• Resolved erikanders

    (@erikanders)


    I have an odd issue:

    I have a site with a static front page and posts on a page called home. For each pagination on my home page the first post is not display.

    For instance, right now I have the reading option, “Blog pages show at most” set to 4 post, but only 3 show up on every page. The first post of every page is not displayed anywhere, but the permalinks still work and they show in a category or search results page. Similarly if I set the option to 3 posts only 2 will display.

    I have deactivated plugins, repaired DB, upgraded to WP 3.1.2 and am unsure where to go from here.

Viewing 5 replies - 1 through 5 (of 5 total)
  • have a look into the template that does the ‘home’ page; there might be some code that excludes the first post, maybe expecting some different structure or a featured first post.

    if you like help with that, you can paste the code of that template into a https://pastebin.com/ and post the link to it here, so someone might have a look at it and might be able to suggest something.

    was that always the case with your theme?
    do you remember having made some changes before this behaviour started?

    link to your site?

    Thread Starter erikanders

    (@erikanders)

    Thanks for the help. Here is the code to my home.php

    Unfortunately I am not the original creator of the theme. I have been doing edits on it for a friend. The site is https://www.organicphotography.ca.

    I don’t believe this has ever been a problem before. Unfortunately I’ve been making many changes around the site and didn’t notice when this started.

    home.php seems to be fine;

    how is the slider programmed?
    could it be that there is one post ticked off already?

    (just try to add rewind_posts(); before the if (have_posts()) : in home.php)

    what is the code of header.php?

    Thread Starter erikanders

    (@erikanders)

    Aha! That did it! Thank you so much.

    I was querying a post in the slider and that was being displayed instead of the first post.

    I placed rewind_posts(); where you said and it fixed everything.

    Thanks again!

    cool ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘First post on every page not displaying’ is closed to new replies.