• I want to link to each speaker’s Twitter, but not all speakers have them. This code below shows the link for all speakers if one speaker has a twitter account and doesn’t show it for any if none do.

    I need to figure out how to show the link to twitter for those that only have a twitter account.

    <?php if ($speaker['speakers_twitter'][1] !=='') { ?>
    <li><a href="https://www.twitter.com/<?php echo $speaker['speakers_twitter'][1]; ?>">@<?php echo $speaker['speakers_twitter'][1]; ?></a></li>
    <?php } ?>

    https://www.ads-software.com/plugins/magic-fields-2/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘If/Else on Repeatable Groups’ is closed to new replies.