• I’m using <i>The Events Calendar</i> plugin for my events management. My developer put a sidebar on my site using a simple custom post type. here’s the code:

    <div class="sidebar grid_3 omega">
    
    			<div class="waste">
    				<div class="side-text">
    					<h3 id="side-title">This Week at Redeeming Cross</h3>
    
    					<?php
    						$args = array(
    							'post_type' => 'events',
    							'posts_per_page' => 4
    							);
    						$the_query = new WP_Query ( $args );
    						if ( have_posts()) : while ( $the_query->have_posts()) : $the_query->the_post();
    					?>					
    
    					<a>">
    						<p><?php the_field('event_name'); ?><?php the_field('day'); ?>, <?php the_field('time'); ?></p>
    					</a>
    					<?php endwhile; endif; ?>				
    
    				</div>
    			</div>
    
    			<div class="side-bg">
    				<img src="http://www.redeemingcross.com/wp-content/themes/RedeemingCross/img/angle.png" alt="">
    			</div>
    		</div>
    
    	</div>

    What should it be to list the tribe_events in the same format?

    I am not proficient in php. I know there’s a plugin. I don’t know how to designate my sidebar to house the plugin.

    http://www.redeemingcross.com

  • The topic ‘Custom Events List – not a widget’ is closed to new replies.