Title: Using Widgets with code?
Last modified: August 19, 2016

---

# Using Widgets with code?

 *  [heinakenka](https://wordpress.org/support/users/heinakenka/)
 * (@heinakenka)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/using-widgets-with-code/)
 * Hi,
 * Is there a way to use a widget directly with some php code?
 * Why? because activating an widget changes the sidebar so if I could just get 
   the functionality without loosing the sidebar.

The topic ‘Using Widgets with code?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [heinakenka](https://wordpress.org/support/users/heinakenka/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/using-widgets-with-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
