• Resolved theApe

    (@theape)


    This is just for reference…

    $author_desc = get_the_author_meta('description', $user->ID);
    echo '' . substr($author_desc,0,45);

    Output

    4.8.3: Aenean lacinia bibendum nulla sed consectetur...
    4.9: <p>Aenean lacinia bibendum nulla sed consecte...

    Solution

    $author_desc = get_the_author_meta('description', $user->ID);
    $author_desc = strip_tags($author_desc); 
    echo '' . substr($author_desc,0,45);

    Output

    4.8.3: Aenean lacinia bibendum nulla sed consectetur...
    4.9: Aenean lacinia bibendum nulla sed consectetur...
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘4.83 > 4.9 – get_the_author_meta description’ is closed to new replies.