truncate/shorten the_author_meta( 'description' );

Discussion in 'WordPress' started by sageman, Apr 30, 2011.

  1. #1
    i have a multi author blog. some of my authors have pretty lengthy bios that i will like to shorten on post pages.

    i'm think of a function that takes the_author_meta( 'description' ); and truncates it to a specified number of characters while stripping all the tags.

    any help will be appreciated.
     
    sageman, Apr 30, 2011 IP
  2. bekar09

    bekar09 Active Member

    Messages:
    283
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    70
    #2
    bekar09, Apr 30, 2011 IP
  3. sageman

    sageman Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    that is the code at that link but it shows the whole description. what i need is to take $user->user_description and shorten it, while stripping all the tags. any help in writing the code? thanks.
     
    sageman, Apr 30, 2011 IP
  4. bekar09

    bekar09 Active Member

    Messages:
    283
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    70
    #4
    Sorry, but that is the only resource that I found. I think you should create a thread in the Wordpress support. I'm sure somebody from the support will definitely come up with an answer. If you get an answer kindly post it here so that the DP community gets to know the answer as well.

    Thanks.
     
    bekar09, Apr 30, 2011 IP