Skip to content

Instantly share code, notes, and snippets.

@sunilw
Created June 17, 2014 11:04
Show Gist options
  • Save sunilw/54cf7c54851b05303a4f to your computer and use it in GitHub Desktop.
Save sunilw/54cf7c54851b05303a4f to your computer and use it in GitHub Desktop.
<?php
/**
/* This loop gives us back
/*
*/
$args = array(
'post_type' => 'larkin_event'
) ;
$my_query = new WP_Query($args) ;
if ($my_query->have_posts()) : ?>
<?php $count =0 ?>
<div class="events-row mobile-only">
<ul id="event-display-mobile"
class="cycle-slideshow"
data-cycle-slides="li"
>
<?php while ($my_query->have_posts()) : $my_query->the_post();
$count++ ;
?>
<li>
<div class="image-container">
<?php $args = array() ;
the_post_thumbnail() ; ?>
</div>
<div class="day">
<?php $date = get_field('eventDate'); ?>
<p><?php echo date('l \t\h\e jS M Y') ?></p>
<p><?php echo date('hia') ?></p>
</div>
</li>
<?php endwhile; ?>
</ul>
</div>
<?php endif; ?>
<?php return ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment