Title: [Plugin: Magic Fields 2] if/else when displaying groups?
Last modified: August 20, 2016

---

# [Plugin: Magic Fields 2] if/else when displaying groups?

 *  [Kahil](https://wordpress.org/support/users/kahil/)
 * (@kahil)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-magic-fields-2-ifelse-when-displaying-groups/)
 * What would be the proper code for doing an if/else statement when displaying 
   a group? I have tried several variations, but none seem to work.
 * Here’s what I would like to do…
 * In a group I have, which can be duplicated, a radio button list. I would like
   to make the group array display only those that have one of the two radio button
   choices. In this case if the “Unpaid” radio button is set. If the “Paid” radio
   is set, then it won’t display.
 * Ideally, I would like to also have the section title show only if there is something
   marked “Unpaid” and not show when there is nothing marked “Unpaid”. So far I 
   haven’t found a way to display the group’s label name either, so I am just doing
   it manually.
 * Hope that makes sense. Thanks in advance!
 * [http://wordpress.org/extend/plugins/magic-fields-2/](http://wordpress.org/extend/plugins/magic-fields-2/)

The topic ‘[Plugin: Magic Fields 2] if/else when displaying 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [Kahil](https://wordpress.org/support/users/kahil/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-magic-fields-2-ifelse-when-displaying-groups/)
 * Status: not resolved