Title: Loop for event posr.
Last modified: September 1, 2016

---

# Loop for event posr.

 *  Resolved [hynek](https://wordpress.org/support/users/hynek/)
 * (@hynek)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/loop-for-event-posr/)
 * Hi,
 * I am sorry I am just beginner so it is totally stupid question. However I can’t
   type event loop code on my own. Is there any template of the code similiar to
   the normal one? Like this one:
 *     ```
       <?php query_posts('cat=2&posts_per_page=1'); ?>
                       <?php if (have_posts()) : ?>
                       <?php while (have_posts()) : the_post(); ?>
                       <div class="featurette-image img-square img-responsive pull-right"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( array(670,2000) ); ?></a></div>
                    <p>
           <?php the_content( ); ?>
           <?php endwhile; ?>
           <?php endif; ?>
       ```
   
 * I don’t know what should I change it to make it works in the same way but for
   Events. Thank you very much.
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

Viewing 1 replies (of 1 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/loop-for-event-posr/#post-7549204)
 * hi,
 * here’s another thread which may help you with this – [https://wordpress.org/support/topic/em-with-wp_query-and-orderby-date?replies=15](https://wordpress.org/support/topic/em-with-wp_query-and-orderby-date?replies=15)

Viewing 1 replies (of 1 total)

The topic ‘Loop for event posr.’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [event](https://wordpress.org/support/topic-tag/event/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)

 * 1 reply
 * 2 participants
 * Last reply from: [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/loop-for-event-posr/#post-7549204)
 * Status: resolved