• Resolved Edil Solis

    (@eosolis14)


    I am using this code for my application form.

    <?php // Load WordPress environment

    ini_set(‘display_errors’, 1);

    error_reporting(E_ALL);

    // Debugging code

    //die(‘Reached application-form.php’);

    // Output the WPForms shortcode to embed the form preview

    // Render the WPForms shortcode

    echo do_shortcode(‘[wpforms id=”#####”]’);

    ?>

    It is the same code I used last time but when I used it again I encountered this error:
    Fatal error: Uncaught Error: Call to undefined function do_shortcode()

    Die function is displaying Reached application-form.php so I don’t know what to do next.
    I tried using shortcode in pages in WordPress and it is working.

    • This topic was modified 2 years, 1 month ago by Edil Solis.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Can’t do shortcode in Tutor LMS Dashboard’ is closed to new replies.