WordPress Archives Custom List Style

Been trying to figure out a way to go about styling the "wp_get_archives" list but it's deemed more difficult for me to figure out. I've tried several solutions from other threads with no luck. This solution was the most helpful so far, but when I changed the years to months, only numbers showed. Desired Outcome 2024 August : 58 Published 2024 July : 15 Published 2024 June : 26 Published 2024 May : 8 Published 2024 April : 16 Published WP Default Format August 2024 (58) July 2024 (15) June 2024 (26) May 2024 (8) April 2024 (16) ************************** wp_get_archives( array( 'format' => 'custom', 'type' => 'monthly', 'limit' => '6', 'post_type' => 'post', 'show_post_count' => true, 'order' => 'DESC', 'before' => sprintf( '<div class="archive-month display-block relative-position width-1of1">', 'themename' ), 'after' => sprintf( '</div>' , 'themename' ), ) );

Comment (0)

You’ll be in good company