Home

have_posts()) : ?>
have_posts()) : $the_query->the_post(); ?>
<?php

if ( '' != get_the_post_thumbnail() && $counter ID), ‘slide-large-image’);
$medium_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘slide-medium-thumb’);
$small_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘slide-small-thumb’);

if($counter == 1){
$img_thumb = $medium_image_url[0];
} else{
$img_thumb = $small_image_url[0];
}

?>

  • <a href="”><img src="” alt=”” data-large-src=”” data-description=”” />
  • [pt_view id=”3b5b857cf9″]

    Advertisements