Title: Get custom sidebar programmatically ?
Last modified: February 1, 2017

---

# Get custom sidebar programmatically ?

 *  Resolved [Aharon](https://wordpress.org/support/users/aharonach/)
 * (@aharonach)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/get-custom-sidebar-programmatically/)
 * Hello there,
 * Is there any option to use (or get, or call) a custom sidebar created with the
   plugin in php ? something like `get_sidebar($sidebar_id)`.
 * Thanks!

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

 *  [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/get-custom-sidebar-programmatically/#post-8732698)
 * Hello aharonach,
 * I have to consult with developer – he is not online at the moment so I’m still
   waiting for response.
    I’ll update thread when I will know more.
 * kind regards,
    Kasia
 *  Thread Starter [Aharon](https://wordpress.org/support/users/aharonach/)
 * (@aharonach)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/get-custom-sidebar-programmatically/#post-8733567)
 * Hello,
 * Thank you for your response. I managed to solve this issue.
    Too bad there is
   not an option to set manually the ids of custom sidebars… I got the correct id
   by inspecting the sidebar in Appearance -> Widgets, it is something generic, 
   like “cs-1”, “cs-2” and so on… Then in the code I used `dynamic_sidebar('cs-1')`
 *  [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/get-custom-sidebar-programmatically/#post-8741712)
 * Hello aharonach,
 * I’m glad to hear that you solved that. If thats okey with you I will mark thread
   as resolved in this case.
 * kind regards,
    Kasia

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

The topic ‘Get custom sidebar programmatically ?’ 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/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/get-custom-sidebar-programmatically/#post-8741712)
 * Status: resolved