I have a WordPress theme with a brief summary, with css styling, at the top of a post. This is wrapped in an if statement to only display if there is a summary.
Using the code below, the summary text displays, but the surrounding HTML markup is not included in the page source.
<?php if (get_smry_text($post)) { ?>
<div class="summaryWrap">
<div class="sumText">
<p><?php get_smry_text($post); ?></p>
</div>
</div>
<?php } ?>
Can anyone offer a suggestion as to why this might be?