In my image.php I am using this code to grab the image caption of each image. The problem is a paragraph tag (
<p> ) is being added around it and I don't want one to be. Could somebody tell me how to strip this tag?
<?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?>