[resolved] have_posts() returns false in copy of WP site (3 posts)

  1. ccstump
    Posted 5 years ago #


    I'm trying to replicate a client's WP site on my Mac for local development. I've been successful in getting the site running, but for some unknown reason posts are not showing up. When I go to edit posts in the control panel there is an accurate count of the number of posts present, but I get a message saying "No posts found." Similarly, have_posts() returns false in the WP loop. Posts are present, however, in the wp_posts table, and if I try exporting the posts from the live site and importing them on the development site the import tells me "post already exists" for every object.

    WP is aware of the posts, but can't find them for display. Why is that? I'm using an exact copy of the live DB and WP. The only difference between the two are updates to paths in the DB so that WP runs local.

    I've done this before without a problem. I'm not sure what is different now or where to start looking to fix. Any help is greatly appreciated. Thanks!

  2. ccstump
    Posted 5 years ago #

    The same is true for WP pages :-(

  3. ccstump
    Posted 5 years ago #

    I figured it out. Deactivating the Event Calendar plugin made the posts and pages display as expected.

Topic Closed

This topic has been closed to new replies.

About this Topic