Title: Widget Embed
Last modified: September 1, 2016

---

# Widget Embed

 *  [markzellner](https://wordpress.org/support/users/markzellner/)
 * (@markzellner)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/widget-embed/)
 * Hello, so I’d like to embed a widget into my page template. I created a new Text
   widget. It is currently sitting in the inactive widgets section and just says
   Text. I want to embed this into the template file for my page. I see that there
   are ways to embed it using php but I cant seem to find the correct structure 
   to include that specific text widget I created.
 * Hopefully that is enough information for yall. Any help would be greatly appreciated!

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

 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/widget-embed/#post-7556707)
 * Hi markzellner. Probably the easiest way is to register a dynamic sidebar, add
   your widget to it, then display the sidebar. Here’s a good tutorial by a guy 
   with quite a bit of experience using WordPress:
    [http://justintadlock.com/archives/2010/11/08/sidebars-in-wordpress](http://justintadlock.com/archives/2010/11/08/sidebars-in-wordpress)
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [9 years, 10 months ago](https://wordpress.org/support/topic/widget-embed/#post-7556708)
 * What I like to do is to create a “sidebar” (sidebars are really just widget holders)
   and then put that sidebar in my template via a call to dynamic_sidebar(). To 
   get the code to create a sidebar, go here:
 * [https://generatewp.com/sidebar/](https://generatewp.com/sidebar/)
 * put the code in your theme’s functions.php and you’ll have a sidebar. Drop the
   widget(s) into it and use dynamic_sidebar in the template
 * [https://codex.wordpress.org/Function_Reference/dynamic_sidebar](https://codex.wordpress.org/Function_Reference/dynamic_sidebar)
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/widget-embed/#post-7556711)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) – [https://generatewp.com/sidebar/](https://generatewp.com/sidebar/)
   
   That’s cool; hadn’t see that before.
 *  Thread Starter [markzellner](https://wordpress.org/support/users/markzellner/)
 * (@markzellner)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/widget-embed/#post-7556714)
 * [@bdbrown](https://wordpress.org/support/users/bdbrown/) I’ll check out this 
   tutorial and see if it works for my needs
 * [@sterndata](https://wordpress.org/support/users/sterndata/) I’ll also give this
   a go.
 * Thank you both for the quick replies!
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/widget-embed/#post-7556754)
 * You’re welcome.

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

The topic ‘Widget Embed’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/widget-embed/#post-7556754)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
