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.
I’m a php n00b… that’s a bit beyond me at the moment. *L* Thanks anyway.
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 🙂
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 } ?>
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…
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.
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).”
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?
You can use the custom fields to store ‘secondary authors’ and then pick those up.
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.
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