We've enabled the mobile theme for one site, but when visiting the home page, a query at the top of the page is being ignored and won't display.
What could be causing this?
Here's the code:
<?php if ( is_front_page() ) {
$upcoming = new WP_Query();
$upcoming->query( array(
'post_type'=> 'tribe_events',
'posts_per_page' => 1
)
);
if ($upcoming->have_posts()) :
while ($upcoming->have_posts()) :
$upcoming->the_post();
?>
I tried taking out the if statement, so it appeared everywhere, but it still would not appear.