Title: Custom Code Not Working &#8211; Footer?
Last modified: August 21, 2016

---

# Custom Code Not Working – Footer?

 *  Resolved [pdaniel](https://wordpress.org/support/users/pdaniel/)
 * (@pdaniel)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/custom-code-not-working-footer/)
 * I created the twitter app for my account and was able to get the consumer key
   and token information. I plugged that into the twidget settings. I selected the
   twitter-api-php library option. I tried the oAuth one as well with same results.
   I then plugged in the following code into the footer.php file where I want to
   the twitter to show up:
 * <img class=”alignleft” src=”{$profile_image}”>
    [@{$user_twitter_name}](https://www.twitter.com/{$user_twitter_name})
 * {$user_description}
    <ul class=”pages”> {$tweets_start}
    - {$tweet_text}
      {$tweet_time}
    - {$tweets_end}
    - But I’m not getting anything back. Am I missing domething here? Do I need 
      some more code? New to php so I apologize if I’m missing osmething easy.
    - Thanks!
    - [http://wordpress.org/plugins/twitget/](http://wordpress.org/plugins/twitget/)

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

 *  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(); ?>
 *  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.
 *  Anonymous User 9905372
 * (@anonymized-9905372)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/custom-code-not-working-footer/#post-4089378)
 * If outside a post, page, you must use the php function to show the data – show_recent_tweets()
   which you’ve already pointed out.
 * Cheers.

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

The topic ‘Custom Code Not Working – Footer?’ is closed to new replies.

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

## Tags

 * [footer](https://wordpress.org/support/topic-tag/footer/)

 * 3 replies
 * 2 participants
 * Last reply from: Anonymous User 9905372
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/custom-code-not-working-footer/#post-4089378)
 * Status: resolved