WordPress.org

Ready to get started?Download WordPress

Forums

Howto create short and long bio from user’s biographical info? (2 posts)

  1. Alexve
    Member
    Posted 4 years ago #

    Hi Everyone,

    I have a question about displaying a ‘short’ and ‘long’ bio, using the same profile information that an author has entered in the ‘About Yourself \ Biographical Info’ section in his profile.

    Let me please explain in more detail:
    I am running a multi-author blog (http://hetnieuwewerkenblog.nl) and I am in the process of building a new release that includes a custom author.php so every author has a page that displays additional information about them. I have already build an author bio box that is displayed at the end of each post, pulling the info from the user' ‘Biographical Info’ in his profile.

    I am using <?php the_author_description(); ?> to pull that info into single.php and <?php echo $curauth->user_description; ?> to pull that info into author.php. This is all working just fine :-)

    What I would like to achieve is the following:
    I would like to be able to ‘cut’ the user’s biographical info so that the author bio box on a single posts only displays the information before the ‘cut’ (creating a 'short' bio). Next, the author’s bio on the author’s information page (author.php) should displays all the information from his ‘Biographical Info’ (the 'long' bio). Ideally, I can imagine creating a cut with the <!--more--> tag.

    Is this possible? What code would be needed to achieve this?

  2. Kim09
    Member
    Posted 4 years ago #

    Hey Alexve,

    I made that with text widget, and it was more simple than coding. [link moderated - if you have videos and tutorials that are helpful please submit them to http://wordpress.tv/ and use those links]

    Nice blog you have.

Topic Closed

This topic has been closed to new replies.

About this Topic