• Resolved hynek

    (@hynek)


    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/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

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