Query ignored on home page with Jetpack mobile theme
-
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.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Query ignored on home page with Jetpack mobile theme’ is closed to new replies.