• Hi all,

    I’m trying to code a php script to handle a form and want to use WP functions. For that purpose, I found on the forum that I need to include the file wp-load.php.

    I have tried to do so by using require but I’m getting errors all the time.

    This is the code I have:

    <?php
    require($_SERVER[‘DOCUMENT_ROOT’].’/wp-load.php’);
    echo ‘Hola’;
    ?>

    (my WP installation is no in wordpress folder but in the server public_html one) I have also tried require without the root, i.e:

    require(‘wp-load.php’);

    But nothing works and it’s driving me crazy.

    Could you please give me a hand on this?

    Thanks a lot.

  • The topic ‘Failure to load wp-load.php’ is closed to new replies.