• I have a website that I pull recent posts from WordPress into the footer with wp-load.php. On my contact forms, the wp-load.php connection is interfering with session variables maintaining between form submissions.

    Here is stripped down version to show only the form page:

    https://www.athomeinkaty.com/properties/test.php

    The following code is included, which is causing the SESSION variables to not carry forward.

    // Include WordPress
    define('WP_USE_THEMES', false);
    require('../blogpress/wp-load.php');
    query_posts('showposts=5');

    If I remove the above code, it works PERFECTLY.

    Any help?

  • The topic ‘wp-load.php Interfering with Sessions’ is closed to new replies.