Title: Retrieving widget data using MySQL query
Last modified: August 19, 2016

---

# Retrieving widget data using MySQL query

 *  [tomer540](https://wordpress.org/support/users/tomer540/)
 * (@tomer540)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/retrieving-widget-data-using-mysql-query/)
 * I’ve built up a multiple dynamic sidebars for front page item manipulation. Each
   sidebar contains a Text widget, and I want to retrieve each widget’s content (
   according to widget ID) from wp_options.
 * What’s the syntax for such a query? And how can I add it to the PHP template?
 * Thanks,
    Tomer

The topic ‘Retrieving widget data using MySQL query’ is closed to new replies.

## Tags

 * [dynamic sidebar](https://wordpress.org/support/topic-tag/dynamic-sidebar/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [query](https://wordpress.org/support/topic-tag/query/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 0 replies
 * 1 participant
 * Last reply from: [tomer540](https://wordpress.org/support/users/tomer540/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/retrieving-widget-data-using-mysql-query/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
