Viewing 1 replies (of 1 total)
  • Plugin Contributor madalin.ungureanu

    (@madalinungureanu)

    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.