Results 1 to 2 of 2

Thread: Get ads thumbnails for page builder by siteorigin

  1. #1
    Thread Starter
    Expired Customer elmihani's Avatar
    Join Date
    Oct 2013
    Location
    France
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  2. #2
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Single ad listing page thumbnails
    By binh in forum ClassiPress General Discussion
    Replies: 2
    Last Post: August 3rd, 2013, 01:25 PM
  2. Home page thumbnails resize
    By mariusm in forum ClassiPress General Discussion
    Replies: 5
    Last Post: November 12th, 2009, 10:51 AM