'post', 'p' => $postid1, ); $post_query1 = new WP_Query($args); if ($post_query1->have_posts()): while ($post_query1->have_posts()): $post_query1->the_post(); $image_src = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); if($image_src){ $url = $image_src[0]; } if (!empty($image_src)) { $image_style = "style='background-image:url(" . esc_url($url) . ")'"; ?>
>

post->ID, $content_length ) ); ?>

'post', 'p' => $postid2, ); $post_query2 = new WP_Query($args); if ($post_query2->have_posts()): while ($post_query2->have_posts()): $post_query2->the_post(); $image_src = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); if($image_src){ $url = $image_src[0]; } if (!empty($image_src)) { $image_style = "style='background-image:url(" . esc_url($url) . ")'"; ?>
>
'post', 'p' => $postid3, ); $post_query3 = new WP_Query($args); if ($post_query3->have_posts()): while ($post_query3->have_posts()): $post_query3->the_post(); $image_src = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); if($image_src){ $url = $image_src[0]; } if (!empty($image_src)) { $image_style = "style='background-image:url(" . esc_url($url) . ")'"; ?>
>