$allposttype = dez_get_all_posttype(); query_posts(array('post__in' => explode(',', $featured_post), 'post_type' => $allposttype, 'posts_per_page' => 100, 'ignore_sticky_posts' => 1, 'orderby' => 'post__in')); while (have_posts()) { the_post(); $post_regular_price = get_post_meta($post->ID, '_regular_price', true); if (function_exists('get_woocommerce_currency_symbol')) { $woo_cur_symbol = get_woocommerce_currency_symbol(); } ?> <div class="imageElement post-<?php the_ID(); ?> "> <?php echo dez_get_featured_slider_image("", "", 640, 480, "alignleft full", "featured-slider-img", dez_get_image_alt_text(), the_title_attribute('echo=0'), true); ?> <h3><a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "><?php echo the_title(); ?> </a><?php if ($post_regular_price) { echo '<span class="pricebox">' . $woo_cur_symbol . $post_regular_price . '</span>'; }
$woo_cur_symbol = get_woocommerce_currency_symbol(); } ?> <div class="imageElement post-<?php the_ID(); ?> "> <?php $the_thumbnail_src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "featured-slider-img"); $thumbnail_src = $the_thumbnail_src[0]; $check_thumb = strpos($thumbnail_src, '640x480'); if ($check_thumb) { echo dez_get_featured_slider_image("", "", 640, 480, "alignleft full", "featured-slider-img", dez_get_singular_cat('false'), the_title_attribute('echo=0'), true); } else { echo dez_get_featured_slider_image("", "", 640, 480, "alignleft full", "full", dez_get_singular_cat('false'), the_title_attribute('echo=0'), true); } ?> <h3><a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "><?php echo the_title(); ?> </a><?php if ($post_regular_price) { echo '<span class="pricebox">' . $woo_cur_symbol . $post_regular_price . '</span>';