Title: Help with shortcode
Last modified: August 30, 2016

---

# Help with shortcode

 *  Resolved [Vincenzo Casu](https://wordpress.org/support/users/vincent06/)
 * (@vincent06)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/help-with-shortcode-3/)
 * Hi, you did a great job with this plugin!!!
 * I have used the shortcode by calling wordpress function in my custom template
   page. <?php echo do_shortcode(‘[h5p id=”1″]’); ?>
 * The iframe is loaded in my page, but is blank.
 * I have seen the html source code:
 *     ```
       <div class="h5p-iframe-wrapper">
          <iframe id="h5p-iframe-1" class="h5p-iframe" data-content-id="1" style="height:1px" src="about:blank" frameborder="0" scrolling="no">
          </iframe>
       </div>
       ```
   
 * The iframe is empty. If I create new dedicated page and I add the shortcode from
   the WordPress editor, the iframe is loaded correctly.
 * How can I fix this issue? Help me!!!
 * [https://wordpress.org/plugins/h5p/](https://wordpress.org/plugins/h5p/)

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

 *  Thread Starter [Vincenzo Casu](https://wordpress.org/support/users/vincent06/)
 * (@vincent06)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/help-with-shortcode-3/#post-6560681)
 * I tried to create new activity, but the result is the same:
 * `<div class="h5p-content" data-content-id="2"></div>`
 * The content is not loaded…
 *  Plugin Author [icc0rz](https://wordpress.org/support/users/icc0rz/)
 * (@icc0rz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/help-with-shortcode-3/#post-6560858)
 * Hi vincent06,
 * Adding the shortcode to a custom template, like you’ve done, should work. I’m
   guessing that for some reason the wp_footer isn’t printed. That’s where the JavaScript
   settings required to start the H5P are printed.
 * I’m not sure why the wp_footer isn’t printed, but you can print them yourself
   using:
 *     ```
       $h5p_plugin = H5P_Plugin::get_instance();
       $h5p_plugin->add_settings();
       ```
   
 * But it must be run after the shortcodes have been processed. If that isn’t possible
   you must use the HTML directly, like you specified in your last comment.
 * The wp_enqueue_scripts action must also have been run for the h5p JavaScript 
   files required by H5P to be loaded. (Those that scans for elements using the 
   h5p-content class.)
 * I hope this helps you figure it out
 *  Thread Starter [Vincenzo Casu](https://wordpress.org/support/users/vincent06/)
 * (@vincent06)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/help-with-shortcode-3/#post-6560859)
 * Great fix! Thanks!!!

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

The topic ‘Help with shortcode’ is closed to new replies.

 * ![](https://ps.w.org/h5p/assets/icon.svg?rev=986118)
 * [Interactive Content – H5P](https://wordpress.org/plugins/h5p/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/h5p/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/h5p/)
 * [Active Topics](https://wordpress.org/support/plugin/h5p/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/h5p/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/h5p/reviews/)

## Tags

 * [iframe](https://wordpress.org/support/topic-tag/iframe/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 3 replies
 * 2 participants
 * Last reply from: [Vincenzo Casu](https://wordpress.org/support/users/vincent06/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/help-with-shortcode-3/#post-6560859)
 * Status: resolved