WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Author information in author page (3 posts)

  1. f.hewitt
    Member
    Posted 6 years ago #

    In the author page, I want to display the author name and biography first, and (but only after) the list of posts.

    But I can't use the_author() and the_author_description() outside of the loop. I can evidently loop in the posts and add the things I want hover the first post item. But:

    - Code structure will be pretty illogical. Name of author and biography arise only one time and it's not clean to put that in the loop.
    - Code will be messy a lot more messy.
    - Can't output data name and description for author with no post.
    - It's seems pretty strange to don't be able to get the informations as I am in an author page.

    Someone have a proposition for a cleaner workaround ? It's can be a great enhancement to allow author data outside of the loop for author page, as the author is implicitly set.

  2. f.hewitt
    Member
    Posted 6 years ago #

    After many research, I've used exactly the solution proposed by Silvar in your first link. I'm happy to see than it's a good solution.

    But the lorelle's post give many interesting informations, it's a good reading and I will keep the link for future reference.

    Thanks for your answer.

Topic Closed

This topic has been closed to new replies.

About this Topic