Error with PHP?
-
New to WordPress and PHP so I apologize if this is an easy one. Tried to implement the Kebo twitter into my html document with the following code and I got the below error message:
<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>Warning: Invalid argument supplied for foreach() in D:\Hosting\2780066\html\wp-content\themes\rapscallion\footer.php on line 41
Any help would be appreciated!
Thanks.
- The topic ‘Error with PHP?’ is closed to new replies.