Title: inserting sidebar tag into php page
Last modified: August 22, 2016

---

# inserting sidebar tag into php page

 *  Resolved [thulag](https://wordpress.org/support/users/thulag/)
 * (@thulag)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/inserting-sidebar-tag-into-php-page/)
 * I made a custom php page and want to add the side bar into the page. can someone
   advise how would I go about doing this? my sidebar name is seachbar. should I
   insert <?php get_searchbar(); ?> in the div?
 * [https://wordpress.org/plugins/custom-sidebars/](https://wordpress.org/plugins/custom-sidebars/)

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

 *  Thread Starter [thulag](https://wordpress.org/support/users/thulag/)
 * (@thulag)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/inserting-sidebar-tag-into-php-page/#post-5376057)
 * ok.. adding <?php get_searchbar(); ?> messed up my site
 *  [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/inserting-sidebar-tag-into-php-page/#post-5376070)
 * Hi [@thulag](https://wordpress.org/support/users/thulag/),
 * Thank you for your question.
 * For displaying sidebar having name “seachbar” you have to use the function dynamic_sidebar
   as following.
 *     ```
       <?php dynamic_sidebar( 'seachbar' ); ?>
       ```
   
 * Find more information about dynamic_sidebar function on the following page.
 * [http://codex.wordpress.org/Function_Reference/dynamic_sidebar](http://codex.wordpress.org/Function_Reference/dynamic_sidebar)
 * I think you will also find it’s better to get information about get_sidebar function
   on the following page.
 * [http://codex.wordpress.org/Function_Reference/get_sidebar](http://codex.wordpress.org/Function_Reference/get_sidebar)
 * Cheers,
    WPMU DEV
 *  Thread Starter [thulag](https://wordpress.org/support/users/thulag/)
 * (@thulag)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/inserting-sidebar-tag-into-php-page/#post-5376072)
 * omw! you’re awesome!!! cheers mate.
 *  [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/inserting-sidebar-tag-into-php-page/#post-5376074)
 * You are most welcome, if i can be of any further assistance please don’t hesitate
   to ask 🙂

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

The topic ‘inserting sidebar tag into php page’ is closed to new replies.

 * ![](https://ps.w.org/custom-sidebars/assets/icon-256x256.png?rev=1414065)
 * [Custom Sidebars - Dynamic Sidebar Classic Widget Area Manager](https://wordpress.org/plugins/custom-sidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-sidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-sidebars/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/inserting-sidebar-tag-into-php-page/#post-5376074)
 * Status: resolved