Created
June 17, 2014 11:04
-
-
Save sunilw/54cf7c54851b05303a4f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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