Title: Template callback does not work
Last modified: August 21, 2016

---

# Template callback does not work

 *  Anonymous User 10765487
 * (@anonymized-10765487)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/template-callback-does-not-work/)
 * I’m trying to use this in my code.
    I grab URL from some custom field in post
   edit and echo it as :
 *     ```
       echo simple_gviewer_embed($my_link, array(640, 400, 'fr'));
       ```
   
 * But It does not show. Am I missing smth?
    Any help would be much appreciated.
 * [http://wordpress.org/plugins/simple-google-docs-viewer/](http://wordpress.org/plugins/simple-google-docs-viewer/)

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

 *  [imahasneh](https://wordpress.org/support/users/imahasneh/)
 * (@imahasneh)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/template-callback-does-not-work/#post-4251106)
 * There is an error in the function `simple_gviewer_embed` (line 95, `simple-google-
   docs-viewer.php`).
    Trying to call a global variable in line 96 that is never
   defined/given a value. Change it to something like this to work:
 * > `$simple_google_docs_viewer = simple_google_docs_viewer();`
 *  [foroshgahe](https://wordpress.org/support/users/foroshgahe/)
 * (@foroshgahe)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/template-callback-does-not-work/#post-4251107)
 * hi
    [http://wordpress.org/support/topic/template-callback-does-not-work](http://wordpress.org/support/topic/template-callback-does-not-work)
   please check your web [signature removed]

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

The topic ‘Template callback does not work’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-google-docs-viewer_ffffff.
   svg)
 * [Simple Google Docs Viewer](https://wordpress.org/plugins/simple-google-docs-viewer/)
 * [Support Threads](https://wordpress.org/support/plugin/simple-google-docs-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-google-docs-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-google-docs-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-google-docs-viewer/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [foroshgahe](https://wordpress.org/support/users/foroshgahe/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/template-callback-does-not-work/#post-4251107)
 * Status: not resolved