WordPress.org

Ready to get started?Download WordPress

Forums

Posts not appearing on home page (12 posts)

  1. deathsteed
    Member
    Posted 6 years ago #

    On our site HomerDerby new posts are not appearing on the front page. An example of this is this post where it has been published but refuses to show on the home page. Other test posts of this have the same behavior.

    This was happening in 2.6, upgraded to 2.7.1 in an effort to fix it but to no avail.

    Any suggestions would be helpful. Thank you.

    -p

  2. GrandSlambert
    Member
    Posted 6 years ago #

    One of the first things you will want to do is open up the index.php file in your theme folder and look for the line that has

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

    Now, look before that line to see if there is anything with the function query_posts(...) in it. If so, comment out that line or remove it. Chances are that line may be hiding certain categories or posts. If you find that line, post it here so we can try to tell you how to correct it.

    BTW, can you temporarily switch to a different theme, like the WordPress Classic theme, and see if the post shows up. You can switch back and forth between themes without losing any data.

  3. deathsteed
    Member
    Posted 6 years ago #

    There is no such function in that file.

    However, a new twist. I switched to WordPress Classic and the home page did not change themes. Other pages did but not the home page. Could this be a caching problem of some sort?

  4. GrandSlambert
    Member
    Posted 6 years ago #

    Yes, it is very likely a caching issue in your browser or in WordPress. Try holding down the CTRL key on your keyboard and hit the F5 key, or hold down the SHIFT key when you refresh your screen (this is for PC, not sure how to do it on a Mac). If the page doesn't refresh, then perhaps you have something like WP Super Cache plugin on your blog - disable that. WordPress by default has no caching mechanism, so it is your browser or a plugin.

    Do the posts eventually end up on your blog, just not right away? If so, it is definetly a caching issue.

  5. deathsteed
    Member
    Posted 6 years ago #

    This isn't a browser cache issue, certainly. Possibly a server cache issue though.

    I don't have any caching plugins like WP Super Cache.

    The posts appear on the blog, just not on the front page. This has been happening since last Friday when we has a huge load day.

    -p

  6. GrandSlambert
    Member
    Posted 6 years ago #

    Unfortunately right now I am at work and can't access your site to see that the post isn't showing, so I will make a note to look back here later. You say "This isn't a browser cache issue, certainly" but you don't say how you know that. Have you tried emptying the cache or accessing the site from another computer. What server are you using and have you asked the server host if they cache anything?

    It may be a plugin causing this - can you list the plugins you are using so I can try to track it down. There are some plugins that will filter certain posts out of the home page (I know, I wrote a couple). Sorry to ask so many questions, but I want to help, just can't do it until I have all the details. :)

  7. deathsteed
    Member
    Posted 6 years ago #

    I've found and fixed the issue. The hosting provider had a redirect to a cached version of the homepage from a few days ago.

    Thank you for your assistance.

    -p

  8. GrandSlambert
    Member
    Posted 6 years ago #

    I would ask the hosting provider to turn of the cache for your site, or find a hosting provider that doesn't cache your site. I have never used any hosting provider that did caching, because as you have found out, that doesn't work for WordPress! :)

  9. NHL23
    Member
    Posted 6 years ago #

    Mark this as resolved please.

  10. esericsu
    Member
    Posted 5 years ago #

    I'm having the same problems too, my posts won't show up on the home page.

    My published post http://internetmlmunderground.com/blog/keywords-mlm-business/

    Check it out thanks.

    Eric

  11. Anonymous
    Unregistered
    Posted 5 years ago #

    i was having same problem i just changed my theme my problem was solved

    Mobile Repairing Picture Help

  12. Saqib
    Member
    Posted 5 years ago #

    Any body take a quick look at my blog and help me if you can please

    [spam link moderated]

Topic Closed

This topic has been closed to new replies.

About this Topic