[Resolved] [Plugin: Twitter for WordPress] Help with modifying this for multiple authors
I manage a multi-author blog and would like to use this plugin to display in the sidebar the Twitter stream of the author being currently viewed.
It seems like it should be a simple thing to set the variable this plugin uses ($username) to be equal to the author metadata (called ‘twitter’ which is from another twitter plugin that just adds that field that can then be used) like this:
$username = the_author_meta(‘twitter’);
But that does not work – the function runs but returns an error from Twitter because of a missing username – it only seems to work if you actually enter the username as this:
$username = “twitterusername”;
I’ve tried playing around with this for a couple of days with no success, but I’m sure it’s because I’m not a PHP coder, just capable of some minor tweaks to other’s code.
Can anyone help me with getting this to work with the author meta data?
- The topic ‘[Resolved] [Plugin: Twitter for WordPress] Help with modifying this for multiple authors’ is closed to new replies.