Wp Dynamic Featured Image

Implement of Dynamic Featured Image : plugin url :https://wordpress.org/plugins/dynamic-featured-image/

Dynamically adds multiple featured image or post thumbnail functionality to your posts, pages and custom post types.


<?php

$postid=get_the_ID();

$nth_image = $dynamic_featured_image -> get_all_featured_images($postid);

$count=-1;

foreach ($nth_image as $key => $value) {

$count++;

echo '<a rel="'.$nth_image[$count]['full'].'" href="javaScript:void(0);" class="col-md-3" style="padding:0 5px;">

<img src="'.$nth_image[$count]['thumb'].'"/>

</a>';

}

?>