foreach( $posts as $post ) {
// в каждом 1-м посту каждой четверки открываем див
echo '<div class="content_one_fourth">';
<? $img_post=wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'thumbnail-post');?>
<div class="post_img" style="background: url(<?=$img_post[0]?>);"></div>
<a class="album_title" href="<?php the_permalink();?>"><?php the_title(); ?></a>
<p class="artist_name"><?php the_field('album_artist'); ?></p>
<p class="album_year"><?php the_field('album_year'); ?></p>
// в каждом 4-м посту каждой четверки закрываем див
// если в последней четверке не 4 поста, то див не закрыт. закрываем его