Title: If/Else on Repeatable Groups
Last modified: August 21, 2016

---

# If/Else on Repeatable Groups

 *  [phej](https://wordpress.org/support/users/phej/)
 * (@phej)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/ifelse-on-repeatable-groups/)
 * 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="http://www.twitter.com/<?php echo $speaker['speakers_twitter'][1]; ?>">@<?php echo $speaker['speakers_twitter'][1]; ?></a></li>
       <?php } ?>
       ```
   
 * [https://wordpress.org/plugins/magic-fields-2/](https://wordpress.org/plugins/magic-fields-2/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [hunk](https://wordpress.org/support/users/hunk/)
 * (@hunk)
 * [12 years ago](https://wordpress.org/support/topic/ifelse-on-repeatable-groups/#post-4746372)
 * this is a field duplicate? which function uses for this

Viewing 1 replies (of 1 total)

The topic ‘If/Else on Repeatable Groups’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/magic-fields-2.svg)
 * [Magic Fields 2](https://wordpress.org/plugins/magic-fields-2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/magic-fields-2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/magic-fields-2/)
 * [Active Topics](https://wordpress.org/support/plugin/magic-fields-2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/magic-fields-2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/magic-fields-2/reviews/)

## Tags

 * [ifelse](https://wordpress.org/support/topic-tag/ifelse/)

 * 1 reply
 * 2 participants
 * Last reply from: [hunk](https://wordpress.org/support/users/hunk/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/ifelse-on-repeatable-groups/#post-4746372)
 * Status: not resolved