Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hello! I’m having a similar problem, but I can’t work out how to use the above code with what I have:

    <?php
    	$events = EM_Events::get(array('category'=>-11, 'limit'=>10, 'pagination'=>'1' ));
    	 foreach( $events as $EM_Event ){
    ?>   
    
    	<div id="event-wrap">
    		<a href="<?php echo $EM_Event->output("#_EVENTURL"); ?>">
    
    			<?php $image_id = get_post_thumbnail_id($EM_Event->post_id);
    			$image_url = wp_get_attachment_image_src($image_id,'medium', true); ?>
    
    			<div id="event-poster" class="poster"> <img src="<?php echo $image_url [0]; ?>"></div>
    			<div id="event-text">
    				<h3><?php echo $EM_Event->output("#_EVENTNAME"); ?></h3>
    				<p><?php echo $EM_Event->output("#_EVENTDATES"); ?></p>
    			</div>
    			</a>
    		</div><!-- end event-wrap -->
    
            <?php } ?>

    Any thoughts on how to paginate this?

Viewing 1 replies (of 1 total)