Title: Output Styling
Last modified: August 20, 2016

---

# Output Styling

 *  [Elliot Toman](https://wordpress.org/support/users/asubtleweb/)
 * (@asubtleweb)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/output-styling/)
 * This looks like a very useful plugin, but I’m a frontend designer and don’t know
   how to style the PHP array. Can you point me to any resources where I can learn
   about it?
 * [http://wordpress.org/extend/plugins/oauth-twitter-feed-for-developers/](http://wordpress.org/extend/plugins/oauth-twitter-feed-for-developers/)

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

 *  [matt adams](https://wordpress.org/support/users/factor1/)
 * (@factor1)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/output-styling/#post-3219182)
 * try this.
 * [https://github.com/stormuk/storm-twitter-for-wordpress/wiki/Example-code-to-layout-tweets](https://github.com/stormuk/storm-twitter-for-wordpress/wiki/Example-code-to-layout-tweets)
 * and to add a element / clss to the tweets i did this:
    `echo '<p class="tweet"
   >' . $the_tweet . '</p>';`
 *  [matt adams](https://wordpress.org/support/users/factor1/)
 * (@factor1)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/output-styling/#post-3219183)
 * i just now dove into this, but post up any questions here
 *  [mlkingh](https://wordpress.org/support/users/mlkingh/)
 * (@mlkingh)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/output-styling/#post-3219185)
 * I am using that example from stormuk, but I cannot figure out how to add a profile
   image into it and I need profile images on there for my client. I don’t write
   PHP code although I can manipulate it sometimes. Any sample code that shows how
   to add the profile image to the example above?
 *  [matt adams](https://wordpress.org/support/users/factor1/)
 * (@factor1)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/output-styling/#post-3219186)
 * you echo this within the tweet loop
 * [http://api.twitter.com/1/users/profile_image/twitter.json?size=original](http://api.twitter.com/1/users/profile_image/twitter.json?size=original)
 *  [mlkingh](https://wordpress.org/support/users/mlkingh/)
 * (@mlkingh)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/output-styling/#post-3219187)
 * Like this?
 *     ```
       echo '<p class="tweet">' . $the_tweet . '</p>';
        echo '$profile_image_url';
        echo '
               <div class="twitter_intents">
                   <p><a href="https://twitter.com/intent/tweet?in_reply_to='.$tweet['id_str'].'">Reply</a> | 
                   <a href="https://twitter.com/intent/retweet?tweet_id='.$tweet['id_str'].'">Retweet</a> | 
                   <a href="https://twitter.com/intent/favorite?tweet_id='.$tweet['id_str'].'">Favorite</a></p>
               </div>';
              echo '
          <div class="timestamp">
                   <a href="https://twitter.com/mlkingh/status/'.$tweet['id_str'].'">
                       '.date('h:i A M d',strtotime($tweet['created_at']. '- 8 hours')).'
                   </a>
               </div>';// -8 GMT for Pacific Standard Time
           } else {
               echo '
               <hr>
               <a href="http://twitter.com/mlkingh">Click here to read mlkingh\'S Twitter feed</a>';
           }
       }
       }
       ```
   
 * _[Moderator Note: Please post code or markup snippets between backticks or use
   the code button. As it stands, your posted code may now have been permanently
   damaged/corrupted by the forum’s parser.]_
 *  [mlkingh](https://wordpress.org/support/users/mlkingh/)
 * (@mlkingh)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/output-styling/#post-3219188)
 * I mean like this…I forgot to click the code stamp in the WYSIWYG
 * `echo ‘<p class=”tweet”>’ . $the_tweet . ‘</p>’;
    echo ‘$profile_image_url’; 
   echo ‘ <div class=”twitter_intents”> <p>[Reply](https://twitter.com/intent/tweet?in_reply_to=&apos;.$tweet[&apos;id_str&apos;].&apos;)
   | [Retweet](https://twitter.com/intent/retweet?tweet_id=&apos;.$tweet[&apos;id_str&apos;].&apos;)
   | [Favorite](https://twitter.com/intent/favorite?tweet_id=&apos;.$tweet[&apos;id_str&apos;].&apos;)
   </p> </div>’; echo ‘ <div class=”timestamp”> [ ‘.date(‘h:i A M d’,strtotime($tweet[‘created_at’]. ‘- 8 hours’)).’  </div>’;// -8 GMT for Pacific Standard Time } else { echo ‘ <hr> [Click here to read mlkingh\’S Twitter feed](http://twitter.com/mlkingh)‘;}}}

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

The topic ‘Output Styling’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/oauth-twitter-feed-for-developers.
   svg)
 * [oAuth Twitter Feed for Developers](https://wordpress.org/plugins/oauth-twitter-feed-for-developers/)
 * [Support Threads](https://wordpress.org/support/plugin/oauth-twitter-feed-for-developers/)
 * [Active Topics](https://wordpress.org/support/plugin/oauth-twitter-feed-for-developers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/oauth-twitter-feed-for-developers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/oauth-twitter-feed-for-developers/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [mlkingh](https://wordpress.org/support/users/mlkingh/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/output-styling/#post-3219188)
 * Status: not resolved