Advertisement
Guest User

Untitled

a guest
Oct 4th, 2011
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.88 KB | None | 0 0
  1. <?php
  2. $args = array( 'post_type' => 'konzerte', 'posts_per_page' => 3 );
  3. $loop = new WP_Query( $args );
  4. while ( $loop->have_posts() ) : $loop->the_post();
  5. echo  '<div class="concert-date">';
  6. echo  '<div class="concert-month">';
  7. global $wp_query;
  8. $postid = $wp_query->post->ID;
  9. echo get_post_meta($postid, 'Monat', true);
  10. echo '</div>';
  11. echo '<div class="concert-day">';
  12. $postid = $wp_query->post->ID;
  13. echo get_post_meta($postid, 'Tag', true);      
  14. echo '</div>';
  15. echo '</div>';
  16. echo '<div class="concert-meta">';
  17. the_title();
  18. echo '<div class="entry-content">';
  19. the_excerpt();
  20. echo '<div class="btn_fcbk">';
  21. echo '<a class="concert-facebook" href="';
  22. $postid = $wp_query->post->ID;
  23. echo get_post_meta($postid, 'Facebook-URL', true);
  24. echo '" target="_blank">Event auf Facebook</a>';
  25. echo '</div>';
  26.  
  27. echo '</div>';
  28. echo '<br clear="both" />';
  29. echo '</div>';
  30.  
  31. endwhile; ?>
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement