$args = array(
'posts_per_page' => 4, // Limit number of posts displayed
'orderby' => 'date', // Order by most recent posts
'order' => 'DESC', // Show latest posts first
'category_name' => 'alumni-faculty-trumpets', // Replace with the category slug you want to display posts from
);$query = new WP_Query($args);
Announcements & EventsVIEW ALL ›
No posts found.';
endif;
?>
Announcements & EventsVIEW ALL ›
ArchivesVIEW ALL ›
Announcements & EventsVIEW ALL ›
4, // Display 4 posts (change this number as needed)
'orderby' => 'date', // Sort by date
'order' => 'DESC', // Most recent first
'category_name' => 'alumni-faculty-trumpets', // Specify the category, change as needed
);$recent_posts = new WP_Query($args);if ($recent_posts->have_posts()) :
while ($recent_posts->have_posts()) : $recent_posts->the_post(); ?> No posts found.';
endif;// Reset post data after custom loop
wp_reset_postdata();
?>
No posts found.';
endif;
?>