Quantcast
Channel: Web Builder » w-builder
Viewing all articles
Browse latest Browse all 4

Multiple “Pen Names” for One Author in WordPress

$
0
0

I have people rewriting articles for my News site. They do everything – find news, pick up picture, post under different names. But I don’t want them to administer my blog, possibly edit templates, screw up plugins, change settings etc. So, normal information security :)

All of them have Author capability level in WordPress. It allows to do everything related to posting, but does not allow them to administer site and … (sadly) to change author name.

In this article / tip I will show you how to have multiple virtual authors/pen names in your WordPress site and don’t waste time of your re-writer for login-logout just to change name.

We will use custom fields of WordPress for this. Custom fields allow us to add any information to our post and show it anywhere in template.

We would need Custom Field Template plugin to make selection of journalist more user friendly. Download and install it.

Then go to configuration page of the plugin and change Template #0, field Template Content

[Author]

type = radio
value = John Jonhson, Editor in Chief # Kimberly Klark, Senior Editor # George Lucas, Movies observer # Paris Hilton, Celebrity gossips junior reporter # Sarah Palin, Political news reporter # Bill Gates, IT expert
default = John Jonhson, Editor in Chief
clearButton = true

After that you will see in post editing page nice radio buttons, that will allow you to select proper journalist.

Next, edit your single.php to show selected author name. Add this code, where you want it to be shown.

<?php echo get_post_meta($post->ID, 'Author', true) ; ?>

That’s all ! :)


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images