How to show the last and newest modified post in a custom category?
I think the easiest way to get the newest modified posts on top of the loop is via post injection using the the_posts filter add_filter( ‘the_posts’, function ( $posts, \WP_Query $q ) { // Only target the main query on the home page if ( $q->is_main_query() && $q->is_home() && !$q->is_paged() // Only target page one … Read more