Get ads thumbnails for page builder by siteorigin
Hi all,
can someone help me to get ads thumbnails on a custom home page using page builder by site origin plugin.
I'm using carroussel post template and import ads post with query_post function (ad_listing)
but the thumbnails doesn't display, because the caroussel template use the post thumbnail
please find the code line bellow :
<li class="carousel-entry">
<div class="thumbnail">
<?php if( has_post_thumbnail() ) : $img = wp_get_attachment_image_src(get_post_thumbnail_id( ), 'vantage-carousel'); ?>
<a href="<?php the_permalink() ?>" style="background-image: url(<?php echo esc_url($img[0]) ?>)">
<span class="overlay"></span>
</a>
</div>
So i need to replace it with ads thumbnails, i think it is cp_ad_loop_thumbnail
thanks for you help