WordPress.org

Ready to get started?Download WordPress

Forums

Twitget
[resolved] Custom Code Not Working - Footer? (4 posts)

  1. pdaniel
    Member
    Posted 10 months ago #

    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}

    {$user_description}
    <ul class="pages">
    {$tweets_start}

  2. {$tweet_text}
    {$tweet_time}
  3. {$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/

  • pdaniel
    Member
    Posted 10 months ago #

    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(); ?>

  • pdaniel
    Member
    Posted 10 months ago #

    Figured it out. I customized the code in the Twidget Settings box. I was doing that in the footer.php file. Thanks.

  • Boštjan Cigan
    Member
    Plugin Author

    Posted 10 months ago #

    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.

  • Reply

    You must log in to post.

    About this Plugin

    About this Topic

    Tags