[Resolved] Adding the ID of author next to the name
We are about to update our Post Profit Stats plugin and we have added a new feature which utalizes your plugin too. Below is a photo showing you more detail. But basically I’m just wondering if you can add the ID of author next to the name, it’s very useful in our case and can help get you more downloads too. Not that you need help there 🙂 The problem with my method is the ID will only show after you update the post. And well if the client ever wants to update the plugin we always need to make that fix. I can see many other uses for this besides just in our plugin. Thanks and awesome plugin!
Oops used wrong user to post that last one, owell. Here is the code I changed on your co-authors-plus.php file on line like 340
`<!– Custom SlickRemix edit, we added echo esc_attr( $coauthor->id ); to the first input below –>
<input type=”text” name=”coauthorsinput” readonly=”readonly” value=”<?php echo esc_attr( $coauthor->display_name ); ?> | ID=<?php echo esc_attr( $coauthor->id ); ?>” />`
Why do you need the ID next to the name?
Thanks for responding. So the author can see and take/copy the ID number next to his name and apply it to our link… shown in pic link above. so when authors give out this link and people click it, those hits will be tracked to that author.
I see. I’d recommend instead adding similar AJAX “search to find your user ID” functionality to your plugin.
Well simply put everything you are doing in your plugin is perfect, we just need to see the ID next to the author so authors can copy that. We would rather not add additional code just to show the author ID when your plugin is already showing the authors with names 🙂
I, too, would be interested in showing additional information. I want to display the author’s name, the email address, and phone number (which I’ve added as a profile field and will use the Jabber field if it’s a guest).
How would one do that?
- The topic ‘[Resolved] Adding the ID of author next to the name’ is closed to new replies.