Title: Replace blog loop with event loop
Last modified: August 30, 2016

---

# Replace blog loop with event loop

 *  Resolved [macaddictcr](https://wordpress.org/support/users/macaddictcr/)
 * (@macaddictcr)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/replace-blog-loop-with-event-loop/)
 * Hello,
    I am hoping to replace my blog loop with an OT event loop on my homepage,
   similar to this event listing on [http://artisanct.com/main-stage](http://artisanct.com/main-stage).
   Is this possible? I understand that may mean some template edits in my themes(
   I will talk to the theme developer on where I need to put your code). Would you
   be able to point me in the right direction?
 *  I understand that Artisan uses the Enterprise edition of OT. We will hopefully
   be moving that direction as well. Would the process be similar to doing it in
   the Enterprise version?
 * Thank you!
 * [https://wordpress.org/plugins/opentickets-community-edition/](https://wordpress.org/plugins/opentickets-community-edition/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [loushou](https://wordpress.org/support/users/loushou/)
 * (@loushou)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/replace-blog-loop-with-event-loop/#post-6234459)
 * Hey [@macaddictcr](https://wordpress.org/support/users/macaddictcr/),
 * OT events are really just posts. Truthfully, they do not have their own loop,
   nor is there any real need for it. What we did for artisanct was create a custom
   page template that used the regular WordPress loop, with a couple parameters,
   to pull up a list of upcoming parent events, then used what is essentially an‘
   archive page’ to display the results. You could do a very similar thing. Basically,
   at the top of your page template, you could invoke something like this, to fetch
   a list of the ‘parent events’:
 *     ```
       query_posts( array(
         'post_type' => 'qsot-event',
         'post_parent' => 0, // only parent events
         'post_status' => 'publish',
         'posts_per_page' => -1,
         'meta_query' => array(
           array(
             'key' => '_start', // events that start
             'compare' => '>', // after
             'value' => date( 'Y-m-d' ), // today
           ),
           array(
             'key' => '_start', // and that start
             'compare' => '<', // before
             'value' => date( 'Y-m-d', strtotime( 'next year' ) ), // the beginning of next year
           ),
         ),
       ) );
       ```
   
 * This would cause the primary loop to result in a list of parent events that start
   between today and the end of this year. You could adjust this to find parent 
   events for any date range. You could also adjust this to find all the child events
   if you know the parent event id.
 * With this in mind, we have been working on an extension that will include a few
   shortcodes and widgets that may help with this process of changing how the events
   are displayed. The extension will provide a way to list upcoming events (outside
   of the calendar), both in widget and shortcode forms. There is also a plan to
   allow you to show your upcoming events in the shop, instead of forcing the calendar
   interface. There are a few other ideas being tossed around too. The extension
   is still in the works though, and could be done sometime in the next couple weeks.
 * Hopefully this helps,
    Loushou
 *  Plugin Author [loushou](https://wordpress.org/support/users/loushou/)
 * (@loushou)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/replace-blog-loop-with-event-loop/#post-6234609)
 * I assume this helped you find a final solution. If not, feel free to reopen this
   ticket and continue the discussion.
 * Loushou
 *  [westlandnick](https://wordpress.org/support/users/westlandnick/)
 * (@westlandnick)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/replace-blog-loop-with-event-loop/#post-6234646)
 * Loushou, you mention that you are releasing a extension soon that will provide
   a widget and or shortcode to display events outside of the calendar. Looks like
   that post was a couple weeks ago, you say it will be released in a couple weeks..
   Do you know how close you are to releasing that extension? I was looking to figure
   a way to do this myself.. I am running an event and just started ticket sales,
   I would really like to use this function in my website. If you could give me 
   a status it would be greatly appreciated. Thanks!
 *  Plugin Author [loushou](https://wordpress.org/support/users/loushou/)
 * (@loushou)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/replace-blog-loop-with-event-loop/#post-6234651)
 * Hey [@westlandnick](https://wordpress.org/support/users/westlandnick/),
 * Yes, we are within the final stages of QA. This plugin should be released withing
   the next few days. We have a mailing list on our website that gets blasted an
   email when new plugins arrive. If you wish to receive such a notification, feel
   free to sign up for it. I will also probably make a note on one or some of these
   recent threads about it’s release as well.
 * Loushou

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Replace blog loop with event loop’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/opentickets-community-edition_bcbcb3.
   svg)
 * [OpenTickets Community Edition](https://wordpress.org/plugins/opentickets-community-edition/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/opentickets-community-edition/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/opentickets-community-edition/)
 * [Active Topics](https://wordpress.org/support/plugin/opentickets-community-edition/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/opentickets-community-edition/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/opentickets-community-edition/reviews/)

## Tags

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

 * 4 replies
 * 3 participants
 * Last reply from: [loushou](https://wordpress.org/support/users/loushou/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/replace-blog-loop-with-event-loop/#post-6234651)
 * Status: resolved