Twitter name from custom field
-
Hi,
Plugin is great, works well, but I was wondering if I could add the twitter name into the widget using a custom field.
Let’s say I have the widget installed and shown in the sidebar and I want for several people (who have their own page) show each account’s tweets. So when you go to A’s page, you’ll see A’s tweets, on B’s page you’ll see B’s tweets.
I know you can add multiple widgets and use a conditional tag, but there are more than 100 twitter accounts…
I was thinking about something like this, but the widget doesn’t show up when I add it to rapid-twitter-widget.php:
global $wp_query;$postid = $wp_query->post->ID;$widgettweet = get_post_meta($postid, 'a-twitter-account', true);
and replace$instance['account']
with$widgettweet
and remove the if ( empty… line later on.Anyone any thoughts on this?
Thanks
https://www.ads-software.com/extend/plugins/rapid-twitter-widget/
- The topic ‘Twitter name from custom field’ is closed to new replies.