Support » Plugins » Custom Events List – not a widget

  • 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>
    						$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();
    						<p><?php the_field('event_name'); ?><?php the_field('day'); ?>, <?php the_field('time'); ?></p>
    					<?php endwhile; endif; ?>				
    			<div class="side-bg">
    				<img src="" alt="">

    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.

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