Forums

multiple authors on a single post? (12 posts)

  1. ArmageddonDesign
    Member
    Posted 3 years ago #

    I've looked around the forums and haven't found any information on this.

    I've added another author to my blog and we sometimes work on posts together. I was wondering if there was a way to attatch multiple authors to a post...maybe a plugin or hack.

    As I was typing this, I thought of adding a "joe and james" author and assigning that author to collaboration posts. That would work...but I'm still wondering if there's a way to assign two different authors to the same post.

    Help? :)

  2. schulte
    Member
    Posted 3 years ago #

    An approach might be to allow users at the same level to edit each others posts. See Changing the way user levels work... and then creating a custom field key named, "post-author" and a value of "joe and james." Then writing some a conditional code to grab the custom field if it exists, and if not, grab the_author() normally.

    Just a thought.

  3. ArmageddonDesign
    Member
    Posted 3 years ago #

    I'm a php n00b... that's a bit beyond me at the moment. *L* Thanks anyway.

  4. Jinsan
    Member
    Posted 3 years ago #

    This is something that I've wanted to do myself. Particuarly for reviews - in a similar vain to comments, it would be interesting to see if there is a way to create a second block below the origibal post with the title second opinion written by a second author. Some sort of checkbox option where in the original post writing you could select Second opinion and it opens a second writing box in which a second user adds their user name from which it takes as the second author and the box is of a different colour sitting beneath the origibal post.

    It's possible, all of it is, how it works is another question, and how it's done is another. If can do it with a website, I believe it can be done with WP it's a just a question of how really.

    One day I might eb smart enough to do something like this, though I doubt it :)

  5. schulte
    Member
    Posted 3 years ago #

    Well, it's untested but something like this might for you, ArmageddonDesign. Main Template (index.php) or wherever you call the_author().


    <?php
    $extra = get_post_meta($post->ID,'post-author',TRUE);
    ?>

    <?php if (post-author == "") { ?>
    by <?php the_author() ?>
    <?php } else { ?>
    by <?php echo $extra; ?></a>
    <?php } ?>

  6. clarke1866
    Member
    Posted 3 years ago #

    Can't you just change || ($author_data->user_level >= 10) ) {

    to || ($author_data->user_level >= 9) ) {

    Which would mean, all 10's can edit 10s and 9s, and all 9's can edit 9's? Or is doing this bad somehow? I just tested it on my dev wp, and it seems to work...

  7. clarke1866
    Member
    Posted 3 years ago #

    Just read this in the codex:

    Each user can edit/modify posts and options for other users whose level is lower than his or her own. The main differences occur between levels 0 and 6 and at level 8. User Levels 9 and 10 have the same privileges but are different in rank, i.e. a user of level 10 could edit information about a user of level 9, but not vice versa.

  8. ArmageddonDesign
    Member
    Posted 3 years ago #

    No no no no no. I'm not talking about editing content. My co-author and I would like co-credit on articles we work on together.

    On my blog, under the headline, it has a "Written by (the_author)" line. I'm just looking for something that will allow multiple authors to be displayed for a post just like multiple categories can be set for a single post. Something like "Written by (the_author) and (the_other_author)."

  9. ArmageddonDesign
    Member
    Posted 3 years ago #

    schulte,

    I think I understand what you're trying to do there. I'll have to tweak with it.

    Also, how would that code allow me to select multiple authors for a single post in the admin?

  10. ifelse
    Moderator
    Posted 3 years ago #

    You can use the custom fields to store 'secondary authors' and then pick those up.

  11. ArmageddonDesign
    Member
    Posted 3 years ago #

    Yeah... but that's just a pain in the a$$. :)

    For now, I just created a "john and james" author and will assign that author as the post author when doing collaborative posts.

    Thanks anyway, everyone.

  12. Usayd
    Member
    Posted 3 years ago #

    Well i found one simple plugin that fixes this problem and I use it on my website :)

    http://txfx.net/code/wordpress/multiple-authors/

    Its great

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags