WordPress.org

Support

Support » How-To and Troubleshooting » Multiple loops & archives don’t work after moving hosts

Multiple loops & archives don’t work after moving hosts

  • 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.

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Multiple loops & archives don’t work after moving hosts’ is closed to new replies.
Skip to toolbar