If you are using a follow button plugin like the one in my Simple Twitter Connect plugin, then you should be able to specify the user you want the button to be for.
So for example, with STC, I’d activate STC-Login and the STC-Follow Button Widget plugins. Then I’d have my users “connect” their twitter accounts and their WP accounts (STC-Login lets them do this on the Users->Your Profile page). That way it knows what their twitter accounts are.
Then this code in a theme should do the trick:
$twuid = get_the_author_meta('twuid');
if ( !empty($twuid) && function_exists('stc_follow_button') ) {
stc_follow_button($twuid);
}
You’ll have to put that code into the Loop or somewhere after it, so that the get_the_author_meta() function knows what user to look for.
Related Posts:
- How to update the delete user confirmation form?
- Modify custom Users Manage page
- How to Save Different Usermeta Fields According to User Role?
- Set user loggin status?
- How can I add data to a custom column in the Users section of the wordpress backend?
- Unique User Account Number + Displayed Via Shortcode
- Last time a user logged in
- Updating Custom WordPress User Meta Field via REST API
- How to pass external variables to the wp_new_user_notification_email filter?
- How can I allow access to multiple users, using the same login, at the same time?
- Creating user relationships
- Function to allow “Anyone can register”?
- Make custom user table column filterable
- Add ‘Creator’ User Meta when adding user
- Change the Labels of Users to Customers in Admin
- User can not login
- Allow guests to use WP Customizer but disable save button
- Users can only view their content from the front end
- List top 5 authors with most posts
- Multi-site User Sessions
- Problem with custom user meta field
- Customizing Users in Admin Area
- how to make a custom field readonly or disabled by user role?
- How to make wordpress use a non-wordpress users table?
- Personalized Gallery what are my options?
- how or where wordress collect unlogged user session
- No plugin populate user information in to form
- Invitation link to a site in multisite network does not work?
- WP_User_Query Search Multiple Keywords from a Multi-Select Field?
- How to display all post from the same current usermeta
- Highlight specific user with custom field value
- Change the functionality of wordpress users module in admin
- Changing starting number of User ID
- Custom search by several options send on form not works
- User registration add user ID?
- How to create functions that affect only a specific user
- Create users via PHP
- Use wp_login_form function to login with a custom user table?
- Is it possible assign a secondary existing role to already existing one?
- User Query Multiple Orderby Clause
- Some data of one custom user profile is erased when I update another custom user profile
- Is there anything that Joomla or Drupal can do that can’t be done in WordPress? [closed]
- Any post install tips after installing WordPress 3.0.1?
- Version Control: Entire site or just pieces?
- Getting a stack trace when an error occurs?
- how to redirect to a custom password retrieval page
- Is there a plugin to make attaching images easier?
- Maintaining synced staging/production WP sites
- WordPress Multi Site Best Practice
- Sub posts and non unique post_name
- How do I properly format the user_role array?
- How to let a single post have its own domain name
- page_template toggle between 2 templates + 2 permalinks for same post
- How to instantly delete posts/pages permanently?
- How to re-arrange media uploaded using : media_handle_upload() as per year / month
- How could we customize the all posts page in the admin panel?
- How do I perform a “get” call to an external API, and then display the JSON results on a page in my WordPress site?
- How to build a child theme from a react-based parent theme?
- Adding Pagination on a Custom Author Page
- How can I get the page url slug when ‘post_name’ returns an id?
- Woocommerce Product page edit
- Convert an theme options page to use in customize.php also?
- The best way to write an FAQ page?
- Get Value from Column in Plugin Table [closed]
- Bulk delete users from a csv list
- How to provide a demonstration of WordPress for new customers
- How to change popular term checklist title when edit post?
- Extra theme – header customization help [closed]
- Disable widgets in customizer for sidebar
- Deep customization of wp-login.php
- How to solve this problem with my subdomain?
- how to add custom logo to my template
- WordPress broken after changing URL
- How to make the Pages in WordPress Customized?
- Custom “wp_login.php?action=lostpassword” and reset password
- Custom theme – how to link the image without posting it
- wp_enqueue_script JS code runs too late (after user begins interacting)
- Validate user login in php
- optimal taxonomy or custom post types
- Easily add custom HTML outside the main container?
- Query Product categories what have a custom field
- Make Widget appear on Dashboard
- Woocommerce dependent attributes
- WordPress Customizer: Check for value of CSS selector and replace it
- How to find and replace (or add) specific word in a specific category?
- Displaying all Custom fields on post except some
- WordPress Install – “end of script output before headers” when running simple php script
- How to appoint different users to different pages?
- How to replace part of shortlink with nothing
- Is there a way to hide a user’s posts from their Activity feed?
- Setting up staging area
- Word Press Theme Customiser and Child theme Function.php
- Security Issues with custom user role or changing core role capabilities?
- Do i need to use PHP in customizer api?
- Add variable : 1 Week ago
- When is it OK to create a custom table for a plugin? [duplicate]
- Custom Post want button to add image and save in Postmeta
- Save And Display Mp3 Audio files on WooCommerce product page with Dokan
- Advice how to connect custom database with WordPress, change data in WordPress and finaly use this data
- Sort Search Results in Order of/by Character @ count (9) of post(s) title. (Ocean-WP theme)