Using Transcript Tags

In your template, you insert a transcript through the use of template tags. The conditional tag has_transcript can be used to ensure that the transcript toggler is only shown if the post itself has a transcript. Transcript tags should only be used inside WordPress's loop.

Example 6.2. Transcript PHP

<?php 
	if(has_transcript()) { 1
		transcript_toggler(); 2
		the_transcript(); 3
		} 
	?>

This code consists of three parts:

1

This conditional tag tells stripShow only to display any of the following if there actually is a transcript for this post.

2

This code generates a link that, when clicked, shows or hides the transcript code. By default, the transcript starts out hidden. See transcript_toggler.

3

This code generates the transcript itself, as an HTML table. See transcript_toggler.