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

  1. pdaniel
    Posted 2 years 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}">

    <ul class="pages">

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



  • pdaniel
    Posted 2 years 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
    Posted 2 years 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
    Plugin Author

    Posted 2 years 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.


  • Topic Closed

    This topic has been closed to new replies.

    About this Plugin

    About this Topic