How to Limit the Speakers Bio

  1. Home
  2. Docs
  3. Event Manager
  4. Frequently Asked Question...
  5. How to Limit the Speakers Bio

How to Limit the Speakers Bio

1. Backup the original files before making any changes.

2. Navigate to Appearance>>Editor and open the Speakers Page Template (template-speakers.php)

3. Look for the line: the_content(); (around line number 40)

4. Replace with this code:

$content = apply_filters(‘the_content’,get_the_content());
$length = 40;
$shortened = implode(‘ ‘,array_slice(str_word_count($content,1),1,$length))
$content = $shortened.’ …<br><a href=”‘ . get_permalink() . ‘”>Read more</a>’;
echo $content;

Here 40 is the number of words to show, please change it to your preferred value.

5. Update the file.

Was this article helpful to you? Yes No