Luderbrus
Member
Posted 3 years ago #
So, I have a author.php site set up. However, It's not deep enough. I want each user to have a (slightly) different design. Can I do this in any easy way, like author1.php, author2.php etc. or do I have to be clever and sorta echo the authorname and use that as a way of calling a custom php file?
Thanks guys.
krogenar
Member
Posted 3 years ago #
I'd love to do the same sort of thing myself -- let each author have some customization options for their author page -- maybe a custom header graphic, colors, etc. I don't know much php, so if someone could develop a plugin or create a guide of some kind for me to follow, that would be great. Or even some advice would be very welcome.
Put this on your theme's author.php:
<?php
load_template(TEMPLATEPATH.'author'.get_the_author_ID().'.php');
?>
And there you go. Now you can do author1.php, author2.php, whatever. Just use the author's ID number as their template number.
You can extend this same kind of concept as far as you like.
Luderbrus
Member
Posted 3 years ago #
Works wonders. Thanks Otto42.