Forums

[resolved] How to echo an existing third-party variable? (1 post)

  1. Iva
    Member
    Posted 5 months ago #

    Hello,

    How do I echo this inside of a widget, in functions.php?

    http://www.sneakymedia.co.uk/2011/web-design-blog/show-the-number-of-twitter-followers-in-your-wordpress-blog/

    I could do this without a widget, but I need specific placement of things in my sidebar.

    This is not working (in combination with the code above, regardless of where in functions.php I put it):

    <p class="post-data"><strong><?php echo getFollowers("JFruscianteSite")." followers"; ?></strong> -
    <a href="http://twitter.com/JFruscianteSite">@JFruscianteSite</a>.</p>

    This would be the entire widget, which works when the followers part is omitted:
    http://pastebin.com/5kDz25zN

Reply

You must log in to post.

About this Topic