WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
[resolved] Adding the ID of author next to the name (8 posts)

  1. slickremix
    Member
    Posted 4 months ago #

    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!

    http://www.slickremix.com/wp-content/uploads/2014/03/Screen-Shot-2014-03-18-at-3.43.35-PM.png

    https://wordpress.org/plugins/co-authors-plus/

  2. slickremix
    Member
    Posted 4 months ago #

    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 ); ?>" />`

  3. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 4 months ago #

    Why do you need the ID next to the name?

  4. slickremix
    Member
    Posted 4 months ago #

    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.

  5. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 4 months ago #

    I see. I'd recommend instead adding similar AJAX "search to find your user ID" functionality to your plugin.

  6. slickremix
    Member
    Posted 4 months ago #

    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 :)

  7. ebloss
    Member
    Posted 4 months ago #

    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?

  8. slickremix
    Member
    Posted 4 months ago #

    Maybe you could add some additional options on the settings page for those who would like to see more info on each author. That would be sweet.

Reply

You must log in to post.

About this Plugin

About this Topic