Title: &quot;1&quot; emitted when using code in template
Last modified: August 30, 2016

---

# "1" emitted when using code in template

 *  Resolved [jddean123](https://wordpress.org/support/users/jddean123/)
 * (@jddean123)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/1-emitted-when-using-code-in-template/)
 * I’ve encountered the problem when using the PHP code to print the widget within
   a template. The script emits a “1” following the closing “</div>”. This does 
   not happen when using the shortcode.
 * Example: [http://kobi5.com](http://kobi5.com) (the yellow note on the center 
   of the page)
 * [https://wordpress.org/plugins/wp-custom-widget-area/](https://wordpress.org/plugins/wp-custom-widget-area/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [krozero](https://wordpress.org/support/users/krozero199/)
 * (@krozero199)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/1-emitted-when-using-code-in-template/#post-6586566)
 * HI, i think it’s not a plugin related. it looks like “1” is generated by some
   other template codes. and besides the php code that the plugin generates for 
   template “dynamic_sidebar()” is a wordpress inbuilt function [https://codex.wordpress.org/Function_Reference/dynamic_sidebar](https://codex.wordpress.org/Function_Reference/dynamic_sidebar).
 * as for example i saw there’s another text widget in your site somewhere near 
   the bottom [https://codex.wordpress.org/Function_Reference/dynamic_sidebar](https://codex.wordpress.org/Function_Reference/dynamic_sidebar)
   and there’s no “1” after text widget. so i think something else is generating
   that “1” at the end. hope this helps.
 * Thanks,
    Kishor

Viewing 1 replies (of 1 total)

The topic ‘"1" emitted when using code in template’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-custom-widget-area.svg)
 * [WP Custom Widget area](https://wordpress.org/plugins/wp-custom-widget-area/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-custom-widget-area/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-custom-widget-area/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-custom-widget-area/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-custom-widget-area/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-custom-widget-area/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [krozero](https://wordpress.org/support/users/krozero199/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/1-emitted-when-using-code-in-template/#post-6586566)
 * Status: resolved