Title: Sending does not work through do_shortcode
Last modified: August 31, 2016

---

# Sending does not work through do_shortcode

 *  Resolved [SeVlad](https://wordpress.org/support/users/sevlad/)
 * (@sevlad)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sending-does-not-work-through-do_shortcode/)
 * Do not send if inserted into the template of the theme (Twenty Fifteen):
 * `echo do_shortcode('[wpuf_form id="402"]');`
 * (if shortcode to insert into the editor, it works)
 * How to solve a problem?
 * [https://wordpress.org/plugins/wp-user-frontend/](https://wordpress.org/plugins/wp-user-frontend/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [SeVlad](https://wordpress.org/support/users/sevlad/)
 * (@sevlad)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/sending-does-not-work-through-do_shortcode/#post-6964499)
 *     ```
       error: wpuf_frontend is not defined
       source: /wp-content/plugins/wp-user-frontend/assets/js/frontend-form.js?ver=4.4.1 line: 195
   
       error: wpuf_frontend is not defined
       source: /wp-content/plugins/wp-user-frontend/assets/js/frontend-form.js?ver=4.4.1 line: 540
   
       error: wpuf_frontend is not defined
       source: /wp-content/plugins/wp-user-frontend/assets/js/frontend-form.js?ver=4.4.1 line: 323
       ```
   
 * Help me please
 *  Plugin Author [weDevs](https://wordpress.org/support/users/wedevs/)
 * (@wedevs)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/sending-does-not-work-through-do_shortcode/#post-6964641)
 * Hello,
 * I have tried to reproduce this issue, but it doesn’t show any error & it works
   fine. You can share your template code through Gist or Pastebin.
 *  Thread Starter [SeVlad](https://wordpress.org/support/users/sevlad/)
 * (@sevlad)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/sending-does-not-work-through-do_shortcode/#post-6964647)
 * > You can share your template code through Gist or Pastebin.
 * hmm..If I understand you correctly:
    Any template of themes [https://themes.trac.wordpress.org/browser/twentyfifteen/](https://themes.trac.wordpress.org/browser/twentyfifteen/)
 *  Plugin Author [weDevs](https://wordpress.org/support/users/wedevs/)
 * (@wedevs)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/sending-does-not-work-through-do_shortcode/#post-6964648)
 * I am confused.
 * In which file you inserted the shortcode?
 *  Plugin Author [weDevs](https://wordpress.org/support/users/wedevs/)
 * (@wedevs)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/sending-does-not-work-through-do_shortcode/#post-6964649)
 * 1. Create a file in your theme root directory named “template-test.php” and paste
   the following code there.
 *     ```
       <?php 
   
       /**
        *
        *Template Name: Test Template
        *
        */
       get_header(); ?>
   
       <?php echo do_shortcode('[wpuf_form id="402"]'); ?>
   
       <?php get_footer(); ?>
       ```
   
 * 2. Create a page from admin and select the template “Test Template”
    and publish
   it.
 * Now visit the page you created and you will see your form there.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Sending does not work through do_shortcode’ is closed to new replies.

 * ![](https://ps.w.org/wp-user-frontend/assets/icon-256x256.gif?rev=2818776)
 * [User Frontend: AI Powered Frontend Posting, User Directory, Profile, Membership & User Registration](https://wordpress.org/plugins/wp-user-frontend/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user-frontend/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user-frontend/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user-frontend/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user-frontend/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user-frontend/reviews/)

## Tags

 * [do_shortcode](https://wordpress.org/support/topic-tag/do_shortcode/)
 * [wpuf](https://wordpress.org/support/topic-tag/wpuf/)

 * 5 replies
 * 2 participants
 * Last reply from: [weDevs](https://wordpress.org/support/users/wedevs/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/sending-does-not-work-through-do_shortcode/#post-6964649)
 * Status: resolved