Title: Custom Fields Creator
Last modified: August 20, 2016

---

# Custom Fields Creator

 *  [ghosterfire](https://wordpress.org/support/users/ghosterfire/)
 * (@ghosterfire)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/custom-fields-creator/)
 * i using below code at single.php
    _ [ Mod note: for code, please use the code
   button or backticks instead of blockquote. Much easier to read that way. ]
 *     ```
       <?php
       	get_header();
       	include(THEME_LIB.'/template_posts.php');
       	get_footer();
       ?>
       <?php $Information = get_post_meta($post->ID, "Information", true);
       if( !empty($Information) )
       foreach($Information as $Information) {echo $Information ['Platform'];} ?>
       foreach($Information as $Information) {echo $Information ['License'];} ?>
       ```
   
 * but the custom field still not show
 * [http://demo.mlch.antserve.com/?p=63](http://demo.mlch.antserve.com/?p=63)
 * [http://wordpress.org/extend/plugins/custom-fields-creator/](http://wordpress.org/extend/plugins/custom-fields-creator/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [madalin.ungureanu](https://wordpress.org/support/users/madalinungureanu/)
 * (@madalinungureanu)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/custom-fields-creator/#post-2861126)
 * Hi!
 * At a first glance there are a couple of mistakes in your code:
 * – in the get_post_meta function the meta key should be lowercase “information”
   –
   same goes for the array keys when you are echoing stuff out: ‘platform’ and ‘
   license’ – the foreach statement is wrong
 *     ```
       <?php $Informations = get_post_meta($post->ID, "information", true);
       if( !empty($Informations) )
       foreach($Informations as $Information) {echo $Information ['platform'];}
       foreach($Informations as $Information) {echo $Information ['license'];} ?>
       ```
   
 * Hope this helps!

Viewing 1 replies (of 1 total)

The topic ‘Custom Fields Creator’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [madalin.ungureanu](https://wordpress.org/support/users/madalinungureanu/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/custom-fields-creator/#post-2861126)
 * Status: not resolved