Results 1 to 3 of 3

Thread: Get the ad image

  1. #1
    Thread Starter
    wayneconcepts's Avatar
    Join Date
    Jun 2012
    Location
    United States
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Get the ad image

    I am using a plugin that allows me to list a custom category "Sponsored" on the sidebar but I need to know how to pull in the ad image also. Does anyone know the code for pulling the ad thumbnail in.

    THis is the code I am trying to pull the image into..

    <div class="sidebar-categories-container">
    <?php while ($sidebar_query->have_posts()) : $sidebar_query->the_post(); ?>
    <div id="sidebar_category_<?php the_id(); ?>" class="sidebar-categories-box">
    <?php if ( $instance['thumbnail_size'] != 'none' and function_exists('has_post_thumbnail') and has_post_thumbnail() ) : ?>
    <div id="sidebar_category_image_<?php the_id(); ?>" class="sidebar-category-image-right alignright">
    <a href="<?php the_permalink(); ?>">
    <?php the_post_thumbnail($instance['thumbnail_size']); ?>
    </a>
    </div>
    <?php endif; ?>
    <h3 class="sidebar_category_title">
    <?php if ( $instance['show_date'] ) : ?>
    <span class="sidebar-categories-date">
    <?php the_time(get_option('date_format')); ?>
    </span>
    <?php endif; ?>
    <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
    </h3>
    <?php if ( $instance['show_excerpt'] ) : ?>
    <span class="sidebar-excerpt"><?php gs_the_excerpt($excerpt_args); ?></span>
    <?php endif; ?>
    </div>
    <?php endwhile; ?>
    </div>

  2. #2
    Member zuko's Avatar
    Join Date
    Apr 2011
    Location
    United Kingdom
    Posts
    81
    Thanks
    0
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    wayneconcepts's Avatar
    Join Date
    Jun 2012
    Location
    United States
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Thank You,

    Wayne Hesler
    WayneConcepts
    Affordable Web Design, Web Hosting, Full Color Printing, Graphic Design
    349 Gray Street
    Herkimer, NY 13550
    Phone: 315.527.3090
    Fax: 1.800.732.3617
    Web Site: http://www.wayneconcepts.com
    Facebook: http://www.facebook.com/wayneconceptss
    Twitter: @wayneconcepts

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: May 8th, 2012, 09:58 AM
  2. post image using free image hosting sites option
    By vincent in forum ClassiPress General Discussion
    Replies: 3
    Last Post: October 9th, 2011, 11:59 PM
  3. [SOLVED] Image Resize Type show black shadow over the image
    By halimo in forum Report ClassiPress Bugs
    Replies: 30
    Last Post: March 12th, 2011, 10:41 PM
  4. Displaying a Main Image or Large Image for listings
    By kwave12 in forum ClassiPress General Discussion
    Replies: 20
    Last Post: December 10th, 2010, 04:47 PM