Multiple loops & archives don't work after moving hosts (2 posts)

  1. sccr410
    Posted 7 years ago #

    We moved to a new web host, everything seemed to transfer fine. Suddenly multiple loops on the home page don't work anymore. I'm completely baffled as to why this would happen. Previously was on PHP4 and now on PHP5 if that makes any difference.

    Also, the archives no longer work - wp_get_archives returns nothing.

  2. Austin Matzko
    Posted 7 years ago #

    It depends on how you were doing the multiple loops. In PHP 5, setting a variable to an object (such as $wp_query) creates a reference to that object rather than a clone of the object, as in PHP 4. To imitate PHP 4's behavior, you might need to clone the object.

Topic Closed

This topic has been closed to new replies.

About this Topic