I’m new to Sage but I have worked with roots for many years.
I have a base-template-home (a copy based on base.php) and inside I have a custom query:
<?php $args = array('post_type' => 'featured', 'posts_per_page' => 1, 'post_status' => 'publish'); $featured = new WP_Query($args); while($featured->have_posts()) : $featured->the_post(); the_post_thumbnail(); endwhile; ?>
The problem is that the following error appears:
Fatal error: Class 'Roots\Sage\WP_Query' not found
Probably this question is stupid but I’m a little lost.
Thank you in advance.