Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class="programm">
- <?php $args = array( 'post_type' => 'programm', 'orderby' => 'date', 'order' => 'ASC' );
- $loop = new WP_Query( $args );
- while ( $loop->have_posts() ) : $loop->the_post();
- $programmDetails = get_post_meta($post->ID,'programmDetails',true);
- ?>
- <?php foreach((array)$programmDetails as $pD ){
- if (isset($pD['date']) || isset($pD['desc']) ): ?>
- <tr>
- <td><?php echo $pD['date'] ?></td>
- <td><?php echo $pD['desc'] ?></td>
- </tr>
- <?php endif; } ?>
- <?php endwhile; ?>
- </table>
Add Comment
Please, Sign In to add comment