• Resolved Fylbrik

    (@fylbrik)


    I was wondering if anyone could help me determine how to to display the audio player when using duplicate groups. I am trying to get it to display the front end function of “get_audio”. This is the code I have so far. Any help will be much appreciated.

    <?php
      $podcasts = get_group('podcast');
      foreach($podcasts as $podcast){
    	echo '<div class="pod-container">';
    	echo '<div class="pod-image">';
    	echo "<img src='".$podcast['podcast_icon'][1]['t']."'>";
    	echo '</div>';
    	echo '<div class="pod-text">';
    	echo $podcast ['podcast_title'][1]."<br />";
    	echo $podcast ['podcast_podcast_audio_file'][1]."";
    	echo '</div>';
    	echo '</div>';
      }
    ?>

    http://ww.wp.xz.cn/plugins/magic-fields/

Viewing 1 replies (of 1 total)
  • Thread Starter Fylbrik

    (@fylbrik)

    Found the solution on the Magic Fields Google group. Thanks.

    <?php $myEvent = get_group('podcast');?> 
    
                      <?php  $myEvent = getGroupOrder('podcast_immagine');
                       foreach($myEvent as $event){ ?>
                       <?php echo get_image('podcast_immagine',$event) ?>
                       <?php echo get('podcast_titolo',$event) ?>
                      <?php echo get_audio('podcast_audio',$event); ?>
                      <?php  echo get('podcast_descrizione',$event) ?> 
    
     <?php } ?>
Viewing 1 replies (of 1 total)

The topic ‘Audio file with duplicate groups?’ is closed to new replies.