Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

If we have a blog with multi-authors is there a way for each to have a follow me twitter button separated. Meaning when we see the post of an author we see only the twitter button with the author account. Or because is a one blog the only option is a Follow us button meaning one account for all the authors?

share|improve this question
    
it would be nice if you can put "follow author name" - cuz ppl could mis-understand between following the whole blog or each specific author (the last option being less widespread" ) –  mireille raad Feb 12 '11 at 2:26
    
Yeah. I want to do something similar. –  Abhishek Gupta Feb 12 '11 at 2:37
add comment

1 Answer

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.

share|improve this answer
    
how can extend this idea in a more generic form like for the "follow us" module that I am using on my website thelazy.info . –  Abhishek Gupta Feb 12 '11 at 2:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.