List latest post for each tag with a category
I think I’ve cracked it. So now the latest post for each tag type is now displayed. A bit beyond my coding level but its working. <?php $args = array( ‘type’ => ‘post’, ‘orderby’ => ‘post_date’); $tags = get_tags($args); foreach($tags as $tag) { $the_query = new WP_Query( ‘tag=’.$tag->slug ); if ( $the_query->have_posts() ) { $the_query->the_post(); … Read more