Forums

[resolved] Deeper authorpages? Deeper than author.php (4 posts)

  1. 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.

  2. 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.

  3. Otto
    Tech Ninja
    Posted 3 years ago #

    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.

  4. Luderbrus
    Member
    Posted 3 years ago #

    Works wonders. Thanks Otto42.

Topic Closed

This topic has been closed to new replies.

About this Topic