I am trying to make my first custom loop for events (I want to build a table from scratch) but am having some basic problems with getting a result out of the gate. It is a pretty basic query that is just looking for events by post type, but I am not getting anything
global $post;
$getid = $posts[0]->post_author;
$q = new WP_Query( array( ‘author’ => $getid, ‘post_type’ => ‘TribeEvents::POSTTYPE’ ) );
while ( $q->have_posts() ): $q->the_post( );
the_title();
endwhile; wp_reset_postdata();