Title: set_transient issue
Last modified: August 22, 2016

---

# set_transient issue

 *  [GoldSmyth](https://wordpress.org/support/users/goldsmyth/)
 * (@goldsmyth)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/set_transient-issue/)
 * Hi,
 * This is my first post, so go easy on me 🙂
 * I’m querying the twitter API, and want to use the transient facility to store
   the data I receive so that I’m not calling the API continually on each page load.
 * The problem I appear to be having is that I have an array with objects and values
   coming from the twitter API, but the transient stores it as a string, so when
   I pull those values out using the get transient, I’m no longer able to manipulate
   this data as an array (which I need to be able to loop through the tweets).
 * Is there a way for me to store and retrieve the data so that I can use it too
   loop through a list of tweets? Is there a conversion I can do before the data
   is stored??
 * Thanks for looking.

Viewing 1 replies (of 1 total)

 *  Thread Starter [GoldSmyth](https://wordpress.org/support/users/goldsmyth/)
 * (@goldsmyth)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/set_transient-issue/#post-5605931)
 * It also says on the documentation for ‘set transient’ that…
 * “You do not need to serialize values. If the value needs to be serialized, then
   it will be serialized before it is set.”
 * So, I thought I would unserialize the data coming out. Yet when I go to unserialize
   the data from the get_transient, I get an error reading
 * “Notice: unserialize(): Error at offset 23066 of 23106 bytes”

Viewing 1 replies (of 1 total)

The topic ‘set_transient issue’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [GoldSmyth](https://wordpress.org/support/users/goldsmyth/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/set_transient-issue/#post-5605931)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
