Title: HeroGreg's Replies | WordPress.org

---

# HeroGreg

  [  ](https://wordpress.org/support/users/herogreg/)

 *   [Profile](https://wordpress.org/support/users/herogreg/)
 *   [Topics Started](https://wordpress.org/support/users/herogreg/topics/)
 *   [Replies Created](https://wordpress.org/support/users/herogreg/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/herogreg/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/herogreg/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/herogreg/engagements/)
 *   [Favorites](https://wordpress.org/support/users/herogreg/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Field Suite] Query loop in reverse order.](https://wordpress.org/support/topic/query-loop-in-reverse-order/)
 *  Thread Starter [HeroGreg](https://wordpress.org/support/users/herogreg/)
 * (@herogreg)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/query-loop-in-reverse-order/#post-6354496)
 * Thanks for the response. I understand it’s returning an array though I’m not 
   familiar with how to modify my code to do what I’m asking.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Field Suite] Output 1 Select Value shortcode](https://wordpress.org/support/topic/output-1-select-value-shortcode/)
 *  Thread Starter [HeroGreg](https://wordpress.org/support/users/herogreg/)
 * (@herogreg)
 * [11 years ago](https://wordpress.org/support/topic/output-1-select-value-shortcode/#post-6082186)
 * I figured it out earlier, here’s the code:
 *     ```
       <?php
           $fields = CFS()->get('item-field');
       ?>
           <? foreach ($fields as $field) : ?>
   
               <?= $field['list-item-title'] ?>
   
               <? foreach ($field['color'] as $colors => $label) :?>
                   <? echo $colors ; ?>
               <? endforeach ?>
   
           <? endforeach ?>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)