How to echo an existing third-party variable?
-
Hello,
How do I echo this inside of a widget, in functions.php?
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="https://twitter.com/JFruscianteSite">@JFruscianteSite</a>.</p>
This would be the entire widget, which works when the followers part is omitted:
https://pastebin.com/5kDz25zN
- The topic ‘How to echo an existing third-party variable?’ is closed to new replies.