merhaba arkadaşlar, aşağıdaki kodu nasıl düzenlersem temamın slider bölümünü rast gele yazılar ile değiştirebilirim? mevcut kodda sabit slider var

<?php $item=5; $loop = new WP_Query( array( 'post_type' => 'lyrics', 'post_status'=> 'publish', 'meta_key' => 'post_views_count', 'orderby' => 'meta_value_num', 'posts_per_page' => 35 ) );
while ( $loop->have_posts() ) : $loop->the_post();
$item = $item+1; if($item>4) $item=1;
$artist_id = get_post_meta( get_the_ID(), 'frt_artist_name', true );
$second_artist_id = get_post_meta( get_the_ID(), 'frt_second_artist_name', true );
$third_artist_id = get_post_meta( get_the_ID(), 'frt_third_artist_name', true );
$fourth_artist_id = get_post_meta( get_the_ID(), 'frt_fourth_artist_name', true );
$fifth_artist_id = get_post_meta( get_the_ID(), 'frt_fifth_artist_name', true );
$artist_img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), "lyrics-artist", false, '' );
$song_name = get_the_title();
$song_link = get_permalink();
if($artist_id == ""){
$artist_name = __('Belirtilmemiş', '2035Themes-fm');
$artist_link = "";
}else{
$get_artist_name = new WP_Query( array(
'post_type' => 'artist',
'posts_per_page' => -1,
'p' => $artist_id,
));
if($second_artist_id != ""){
$get_second_artist_name = new WP_Query( array(
'post_type' => 'artist',
'posts_per_page' => -1,
'p' => $second_artist_id,
));
}
if($third_artist_id != ""){
$get_third_artist_name = new WP_Query( array(
'post_type' => 'artist',
'posts_per_page' => -1,
'p' => $third_artist_id,
));
}
if($fourth_artist_id != ""){
$get_fourth_artist_name = new WP_Query( array(
'post_type' => 'artist',
'posts_per_page' => -1,
'p' => $fourth_artist_id,
));
}
if($fifth_artist_id != ""){
$get_fifth_artist_name = new WP_Query( array(
'post_type' => 'artist',
'posts_per_page' => -1,
'p' => $fifth_artist_id,
));
}
if( $get_artist_name->have_posts() ) :
while( $get_artist_name->have_posts() ) : $get_artist_name->the_post();
$artist_name = get_the_title();
$artist_link = get_permalink();
endwhile;
endif;
wp_reset_query();
if($second_artist_id != ""){
if( $get_second_artist_name->have_posts() ) :
while( $get_second_artist_name->have_posts() ) : $get_second_artist_name->the_post();
$second_artist_name = get_the_title();
$second_artist_link = get_permalink();
endwhile;
endif;
wp_reset_query();
}
if($third_artist_id != ""){
if( $get_third_artist_name->have_posts() ) :
while( $get_third_artist_name->have_posts() ) : $get_third_artist_name->the_post();
$third_artist_name = get_the_title();
$third_artist_link = get_permalink();
endwhile;
endif;
wp_reset_query();
}
if($fourth_artist_id != ""){
if( $get_fourth_artist_name->have_posts() ) :
while( $get_fourth_artist_name->have_posts() ) : $get_fourth_artist_name->the_post();
$fourth_artist_name = get_the_title();
$fourth_artist_link = get_permalink();
endwhile;
endif;
wp_reset_query();
}
if($fifth_artist_id != ""){
if( $get_fifth_artist_name->have_posts() ) :
while( $get_fifth_artist_name->have_posts() ) : $get_fifth_artist_name->the_post();
$fifth_artist_name = get_the_title();
$fifth_artist_link = get_permalink();
endwhile;
endif;
wp_reset_query();
}


}

                ?>