How to Add Several Commas for Several Speakers of a Session

  1. Home
  2. Docs
  3. Event Manager
  4. Frequently Asked Question...
  5. How to Add Several Commas for Several Speakers of a Session

How to Add Several Commas for Several Speakers of a Session

You might have several speakers for a certain session of your event, so please do the following to display them properly:

1. Backup the original files before making any changes.

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

3. Comment or remove these lines: (around line 80 to 85)

p2p_list_posts( $connected, array(
‘before_list’ => ‘<p>by ‘,
‘after_list’ => ‘</p>’,
‘before_item’ => ”,
‘after_item’ => ‘ ‘,
) );

4. Add these lines after

$speakers = “”;
$conspekers = $connected->posts;
foreach($conspekers as $speaker) {
$speakers = $speakers.'<a href=”‘.$speaker->guid.'”>’.$speaker->post_title.'</a>, ‘;
}
echo substr_replace($speakers ,””,-2);

5. Update the file

 

Was this article helpful to you? Yes No