Title: Return array instead of HTML
Last modified: August 22, 2016

---

# Return array instead of HTML

 *  [squattingturnip](https://wordpress.org/support/users/squattingturnip/)
 * (@squattingturnip)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/return-array-instead-of-html/)
 * This plugin is very nice, but I’m hoping to use it in a slightly different way.
   Specifically, I want to:
    - Use it to get an array (or object) with tweet data, so that I can use data
      from a single tweet in several places on the page
    - Take advantage of its caching features
 * Specifically, I’d like to use the image from a tweet for the background of one
   div somewhere on the page, and then put the content of the tweet in a second 
   div elsewhere. If I could get the template tag to return an array, then I could
   just use that.
 * Unfortunately I don’t have a ton of experience with Classes, so I’m running into
   a bit of a wall trying to create my own template tag to do this, so any help 
   would be appreciated!
 * Thanks!
 * [https://wordpress.org/plugins/devbuddy-twitter-feed/](https://wordpress.org/plugins/devbuddy-twitter-feed/)

The topic ‘Return array instead of HTML’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/devbuddy-twitter-feed.svg)
 * [DevBuddy Twitter Feed](https://wordpress.org/plugins/devbuddy-twitter-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/devbuddy-twitter-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/devbuddy-twitter-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/devbuddy-twitter-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/devbuddy-twitter-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/devbuddy-twitter-feed/reviews/)

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [caching](https://wordpress.org/support/topic-tag/caching/)
 * [template tag](https://wordpress.org/support/topic-tag/template-tag/)

 * 0 replies
 * 1 participant
 * Last reply from: [squattingturnip](https://wordpress.org/support/users/squattingturnip/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/return-array-instead-of-html/)
 * Status: not resolved