Lucy - Highland Beach, FL

"Read" button should only display if there is content in the post

Assigned to
Kyle Brown, Web Development at Diocesan Kyle B.
Notes
Currently, no homilies have text but they still have buttons to read.

Comments & Events

Cody Armock, Web Content Specialist at Diocesan
Added this code to DPI_Theme\template-parts\homilies\content.php line 76-78
<?php if('' !== get_post()->post_content) : ?>
                <a class="button" href="<?= the_permalink(); ?>">Read</a>
              <?php endif;?>
Veronica Alvarado, Project Manager at Diocesan 👍
Cody Armock, Web Content Specialist at Diocesan
Cody Armock completed this to-do.