Viewing 1 replies (of 1 total)
  • Plugin Author Alex Mansfield

    (@alexmansfield)

    Yes, you could use the substr() PHP function to limit the number of characters. I’m not sure if you’re trying to limit the number of characters in the title, or in the excerpt. If you were trying to limit the number of characters in the title, you would want to change line 24 of the plugin to look like this:

    $html .= '<li><a href="'.$numpost->guid.'">'.substr($numpost->post_title, 0, 10).'</a>';

    To limit the excerpt, you would use the same substr() function to wrap the $numpost->post_excerpt variable.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Latest Posts by Author] Limit numbers of characters’ is closed to new replies.