I'm trying to query some fields from a custom post-type created by "The Events Calendar" plugin, in my footer.php. The post-type is called 'tribe_events'. Here's my query, which is currently showing me nothing.
<ul class="evul" > <? $query = new WP_Query ( array( 'post_type' => 'tribe_events') ); if ($query->have_posts() ) : while ($query-> have_posts()) : $query->the_post(); ?> <li class="evlist" id="evli-"> <span class="evdate" id="evspd-"> <? echo tribe_get_venue();?> </span> <span class="evtype" id="evspt-"> <? echo tribe_get_events_link(); ?>: </span> <span class="evdesc" id="evspds-"> <? echo the_title(); ?> </span> </li><br> <? endwhile; endif; wp_reset_postdata(); ?> </ul> </div>
I'm not sure what else I need to do. Is there a step I'm missing since it's from a plugin?