Title: ShortCode in a do_shortcode hook
Last modified: November 1, 2016

---

# ShortCode in a do_shortcode hook

 *  [movihardt](https://wordpress.org/support/users/movihardt/)
 * (@movihardt)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/shortcode-in-a-do_shortcode-hook/)
 * Hi,
    I try to build an automated insertion of an 3d viewer without using shortcode.
   This is what i have done : – inserting the declaration of javascript files in
   the footer – adding the do_shortcode hook in the main part of single pages – 
   adding the mime type dae via the WP Add Mime Types plugin (tried the other method
   by adding mime type dae in the functions.php file of my theme. – using the $variable
   = sprintf(‘[3D … ù1 … %2 ,]method in order to add dynamically the file for displaying.
   The string of the uploaded filer appears to be ok (ie, a .dae file). However,
   when passed through the do_shortcode hook, the name of the file remains, but 
   the extension is changed in png … Thus, the plugin cannot work. In order to add
   a file, i use Advanced Custom Fields. Does someone has an idea of what is happening,
   and how to get rid of this problem, for example in the functions.php file ? Thanks
   in advance Movihardt

The topic ‘ShortCode in a do_shortcode hook’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/3d-model-viewer.svg)
 * [3D Model Viewer](https://wordpress.org/plugins/3d-model-viewer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/3d-model-viewer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/3d-model-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/3d-model-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/3d-model-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/3d-model-viewer/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [movihardt](https://wordpress.org/support/users/movihardt/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/shortcode-in-a-do_shortcode-hook/)
 * Status: not resolved