Holy Family & CCTN - Orlando, FL

Mass Times: Allow Headers to be Editable (Mass Times & Homilies)

Assigned to
Kyle Sullivan, Web Development at Diocesan Kyle S.
Notes
<?= get_field('mass_times_title', 'options') ? get_field('mass_times_title', 'options') : "Mass Times"; ?>

<?= get_field('homilies_title', 'options') ? get_field('homilies_title', 'options') : "Mass Times"; ?>

Comments & Events

Kyle Sullivan, Web Development at Diocesan
I forgot that they're using links, so I didn't add a title field and instead added an ACF instruction for them.
Here's what I updated some of the code to be (this changes slightly per section, but this captures it analogously).
<?php if(get_field('mass_times_link', 'options')) :
  $massTimesLink = get_field('mass_times_link', 'options'); ?>
  <a href="<?= $massTimesLink['url'] ? $massTimesLink['url'] : ''; ?>" class="titleLink" target="<?= $massTimesLink['target'] ? $massTimesLink['target'] : ''; ?>" title="<?= $massTimesLink['title'] ? $massTimesLink['title'] : 'Mass Times'; ?>">
    <h5 class="theCategory"><?= $massTimesLink['title'] ? $massTimesLink['title'] : "Mass Times"; ?></h5>
  </a>
<?php else : ?>
  <h5 class="theCategory">Mass Times</h5>
<?php endif; ?>
Kyle Sullivan, Web Development at Diocesan
Kyle Sullivan completed this to-do.