Custom Field as Twitter Username
-
Hi there,
Firstly, thanks for creating such an excellent plugin.
I was wondering whether you might be able to help me with what I think is probably a very basic PHP problem…?
I’m trying to use a custom field as the username for your plugin:
Currently I have:
db_twitter_feed(array('user' => 'twitterusername'));
But want to have something along the lines of:
$username = get_field('twitter_username'); db_twitter_feed(array('user' => '$username'));
I’m very new to PHP so am likely missing something basic here. I have already registered the custom field ‘twitter_username’ and is working correctly.
My idea is to have each post on my site display a different twitter feed depending on the subject of the post. This *hopefully* achievable by allowing the post author to input the twitter username in a custom field in the post editor screen and parse the information into your plugin.
Thank you for any help you can offer,
Paul
- The topic ‘Custom Field as Twitter Username’ is closed to new replies.