Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array( 'post_type' => 'konzerte', 'posts_per_page' => 3 );
- $loop = new WP_Query( $args );
- while ( $loop->have_posts() ) : $loop->the_post();
- echo '<div class="concert-date">';
- echo '<div class="concert-month">';
- global $wp_query;
- $postid = $wp_query->post->ID;
- echo get_post_meta($postid, 'Monat', true);
- echo '</div>';
- echo '<div class="concert-day">';
- $postid = $wp_query->post->ID;
- echo get_post_meta($postid, 'Tag', true);
- echo '</div>';
- echo '</div>';
- echo '<div class="concert-meta">';
- the_title();
- echo '<div class="entry-content">';
- the_excerpt();
- echo '<div class="btn_fcbk">';
- echo '<a class="concert-facebook" href="';
- $postid = $wp_query->post->ID;
- echo get_post_meta($postid, 'Facebook-URL', true);
- echo '" target="_blank">Event auf Facebook</a>';
- echo '</div>';
- echo '</div>';
- echo '<br clear="both" />';
- echo '</div>';
- endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement