Possible to create short and long bio from user’s biographical info?
-
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 theme 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. It now shows the bio that the users has entered in his ‘Biographical Info’.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?
-
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
-
Yes, this is a question for the WordPress.org forums. I’ll post the question over there. This questions can be removed. Thx.
- The topic ‘Possible to create short and long bio from user’s biographical info?’ is closed to new replies.