How to make event loop?
-
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; ?>[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]
I don’t know what should I change it to make it works in the same way but for Events. Thank you very much.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘How to make event loop?’ is closed to new replies.