Forums

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

  1. sccr410
    Member
    Posted 11 months 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. filosofo
    Member
    Posted 11 months 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.

Reply

You must log in to post.

About this Topic

Tags