Title: pdaniel's Replies | WordPress.org

---

# pdaniel

  [  ](https://wordpress.org/support/users/pdaniel/)

 *   [Profile](https://wordpress.org/support/users/pdaniel/)
 *   [Topics Started](https://wordpress.org/support/users/pdaniel/topics/)
 *   [Replies Created](https://wordpress.org/support/users/pdaniel/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/pdaniel/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/pdaniel/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/pdaniel/engagements/)
 *   [Favorites](https://wordpress.org/support/users/pdaniel/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Twitget] Custom Code Not Working – Footer?](https://wordpress.org/support/topic/custom-code-not-working-footer/)
 *  Thread Starter [pdaniel](https://wordpress.org/support/users/pdaniel/)
 * (@pdaniel)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/custom-code-not-working-footer/#post-4089305)
 * Figured it out. I customized the code in the Twidget Settings box. I was doing
   that in the footer.php file. Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Twitget] Custom Code Not Working – Footer?](https://wordpress.org/support/topic/custom-code-not-working-footer/)
 *  Thread Starter [pdaniel](https://wordpress.org/support/users/pdaniel/)
 * (@pdaniel)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/custom-code-not-working-footer/#post-4089208)
 * I did plug in the following and it did work, but it brought back the account 
   description that I don’t want to show. I only want to show the name and last 
   tweet.
 * <?php show_recent_tweets(); ?>
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kebo Twitter Feed] Error with PHP?](https://wordpress.org/support/topic/error-with-php/)
 *  Thread Starter [pdaniel](https://wordpress.org/support/users/pdaniel/)
 * (@pdaniel)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-with-php/page/2/#post-3995536)
 * Ok, I’ll give it a shot. For kicks I plugged in the following code and the else
   part came back which tells me the data coming back is not in array form maybe??
   I checked again with the $tweets = kebo_twitter_get_tweets();
    print_r($tweets);
 * and the tweets are coming back ok. I see them fine.
 * code:
    <?php $tweets = kebo_twitter_get_tweets(); ?>
 * <?php $i = 0; ?>
 * <?php if (is_array($tweets)) : ?>
 *  <?php foreach ($tweets as $tweet) : ?>
 *  <?php echo $tweet->text; ?>
 *  <?php if (++$i == 10) break; ?>
 *  <?php endforeach; ?>
 * <?php else : ?>
 *  <p>Sorry, no Tweets found.</p>
 * <?php endif; ?>
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kebo Twitter Feed] Error with PHP?](https://wordpress.org/support/topic/error-with-php/)
 *  Thread Starter [pdaniel](https://wordpress.org/support/users/pdaniel/)
 * (@pdaniel)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-with-php/#post-3995527)
 * Ok, it looks like I was able to pull back tweets when I added the code from your
   suggestion above. So, I then tried to code the custom tweet per the sample and
   I got the same error I did before..
 * Warning: Invalid argument supplied for foreach() in D:\Hosting\2780066\html\wp-
   content\themes\rapscallion\footer.php on line 41
 * Here’s the code..
 *  <div class=”content-wrap”>
    <?php $tweets = kebo_twitter_get_tweets(); ?> <?
   php $i = 0; ?> <?php foreach ($tweets as $tweet) : ?> <?php echo $tweet->text;?
   > <?php if ( ++$i == 10 ) break; ?> <?php endforeach; ?> </div>
 * Any suggestions? PHP is not my strong point.
 * thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kebo Twitter Feed] Error with PHP?](https://wordpress.org/support/topic/error-with-php/)
 *  Thread Starter [pdaniel](https://wordpress.org/support/users/pdaniel/)
 * (@pdaniel)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-with-php/#post-3995523)
 * Hi Peter – Actually this was on my list to get down. Let me give it another shot
   tonight based on your feedback and I’ll get back to you.
 * thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kebo Twitter Feed] Error with PHP?](https://wordpress.org/support/topic/error-with-php/)
 *  Thread Starter [pdaniel](https://wordpress.org/support/users/pdaniel/)
 * (@pdaniel)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-with-php/#post-3995436)
 * no, my computer was giving me fits last night. going to try today real quick.
   will let you know. thanks so much for the help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kebo Twitter Feed] Error with PHP?](https://wordpress.org/support/topic/error-with-php/)
 *  Thread Starter [pdaniel](https://wordpress.org/support/users/pdaniel/)
 * (@pdaniel)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-with-php/#post-3995353)
 * thanks. It is a live site unfortunately. I can try it later tonight. I’ll follow
   up after to let you know what I find. thanks again!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kebo Twitter Feed] Error with PHP?](https://wordpress.org/support/topic/error-with-php/)
 *  Thread Starter [pdaniel](https://wordpress.org/support/users/pdaniel/)
 * (@pdaniel)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-with-php/#post-3995348)
 * it is set to style: list.
 * Here are the settings I have. I don’t see it on the web site. The site is customized
   some so I’m not sure if that has to do with anything.
 * Kebo Twitter Feed:
 * Title: Latest Tweet
    Style: List Theme: Light Number Of Tweets: 1
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kebo Twitter Feed] Error with PHP?](https://wordpress.org/support/topic/error-with-php/)
 *  Thread Starter [pdaniel](https://wordpress.org/support/users/pdaniel/)
 * (@pdaniel)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-with-php/#post-3995345)
 * I don’t see how I can add a widget to the page. I have activated the Kebo widget
   by moving the widget to the right side bar on the Widget page. What would be 
   the next step?
 * thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kebo Twitter Feed] Error with PHP?](https://wordpress.org/support/topic/error-with-php/)
 *  Thread Starter [pdaniel](https://wordpress.org/support/users/pdaniel/)
 * (@pdaniel)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-with-php/#post-3995344)
 * I don’t see any error messages from the settings page. It looks like I’m connected
   and no error messages in the log. I’ll try to add it to the widget area and see
   if that works. Thanks for the prompt response!
 * To enable us to display your Tweets you must connect your Twitter account to 
   our Twitter Application by clicking on the large ‘Connect to Twitter’ button 
   below.
    Connected to Twitter
 * Connected as @rapscallionbeer ✖
 * General Options
 * Feed Refresh Rate
 * Minutes. Should be between 1 and 30.
    This controls how frequently we update 
   the stored list of Tweets for display on your website.
 * Error Log
 * There is a chance that we may receive errors when making requests to Twitter,
   which will be displayed below. If errors are occuring consistently please check
   the key below to see if action is required.
    Date Code Message Good news, there
   have been no errors received from Twitter recently.

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