/** * Gets featured posts IDs from transient, if the transient doesn't exist - runs the query and stores IDs */ function et_get_featured_posts_ids() { if (false === ($et_featured_post_ids = get_transient('et_featured_post_ids'))) { $featured_query = new WP_Query(apply_filters('et_featured_post_args', array('posts_per_page' => (int) et_get_option('flexible_featured_num'), 'cat' => (int) get_catId(et_get_option('flexible_feat_posts_cat'))))); if ($featured_query->have_posts()) { while ($featured_query->have_posts()) { $featured_query->the_post(); $et_featured_post_ids[] = get_the_ID(); } set_transient('et_featured_post_ids', $et_featured_post_ids); } wp_reset_postdata(); } return $et_featured_post_ids; }
?> </a> <a id="right-arrow" href="#"><?php esc_html_e('Next', 'Boutique'); ?> </a> <div id="slides"> <?php global $boutique_active_plugin_name; $arr = array(); $featured_cat = get_option('boutique_feat_cat'); $featured_num = (int) get_option('boutique_featured_num'); $featured_use_pages = get_option('boutique_use_pages', 'false'); if ('false' == $featured_use_pages) { $featured_args = array('posts_per_page' => (int) $featured_num, 'cat' => (int) get_catId($featured_cat)); } else { global $pages_number; if (get_option('boutique_feat_pages') != '') { $featured_num = count(get_option('boutique_feat_pages')); } else { $featured_num = $pages_number; } $featured_args = array('post_type' => 'page', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => (int) $featured_num); if (is_array(get_option('boutique_feat_pages'))) { $featured_args['post__in'] = (array) array_map('intval', et_get_option('boutique_feat_pages', '', 'page')); } } if ($boutique_active_plugin_name == 'wp_ecommerce' && 'false' == $featured_use_pages) { $et_term_by = is_numeric($featured_cat) ? 'id' : 'name'; $et_featured_term = get_term_by($et_term_by, $featured_cat, 'wpsc_product_category');
if ('on' == et_get_option('fusion_slider_auto', 'false')) { $featured_slider_class = ' et_slider_auto et_slider_speed_' . et_get_option('fusion_slider_autospeed', '7000'); } ?> <div id="et-slider-wrapper"<?php if ('' != $featured_slider_class) { printf(' class="%s"', esc_attr($featured_slider_class)); } ?> > <div id="et-slides"> <?php $featured_cat = et_get_option('fusion_feat_cat'); $featured_num = (int) et_get_option('fusion_featured_num'); if ('false' == et_get_option('fusion_use_pages', 'false')) { $featured_query = new WP_Query(apply_filters('et_featured_post_args', array('posts_per_page' => intval($featured_num), 'cat' => (int) get_catId(et_get_option('fusion_feat_posts_cat'))))); } else { global $pages_number; if ('' != et_get_option('fusion_feat_pages')) { $featured_num = count(et_get_option('fusion_feat_pages')); } else { $featured_num = $pages_number; } $et_featured_pages_args = array('post_type' => 'page', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => (int) $featured_num); if (is_array(et_get_option('fusion_feat_pages', '', 'page'))) { $et_featured_pages_args['post__in'] = (array) array_map('intval', et_get_option('fusion_feat_pages', '', 'page')); } $featured_query = new WP_Query(apply_filters('et_featured_page_args', $et_featured_pages_args)); } while ($featured_query->have_posts()) { $featured_query->the_post();
<div id="featured"> <?php global $featured_num; $arr = array(); $i = 1; $width = 1400; $height = 465; $featured_cat = get_option('mycuisine_feat_cat'); $featured_num = (int) get_option('mycuisine_featured_num'); if (get_option('mycuisine_use_pages') == 'false') { query_posts("posts_per_page={$featured_num}&cat=" . get_catId($featured_cat)); } else { global $pages_number; if (get_option('mycuisine_feat_pages') != '') { $featured_num = count(get_option('mycuisine_feat_pages')); } else { $featured_num = $pages_number; } $et_featured_pages_args = array('post_type' => 'page', 'orderby' => 'menu_order', 'order' => 'DESC', 'posts_per_page' => (int) $featured_num); if (is_array(et_get_option('mycuisine_feat_pages', '', 'page'))) { $et_featured_pages_args['post__in'] = (array) array_map('intval', et_get_option('mycuisine_feat_pages', '', 'page')); } query_posts($et_featured_pages_args); } while (have_posts()) { the_post(); global $post; $et_mycuisine_settings = maybe_unserialize(get_post_meta(get_the_ID(), '_et_mycuisine_settings', true)); $arr[$i]['variation'] = isset($et_mycuisine_settings['et_fs_variation']) ? (int) $et_mycuisine_settings['et_fs_variation'] : 1; $arr[$i]["title"] = truncate_title(25, false); $arr[$i]["fulltitle"] = truncate_title(250, false);
<?php global $ids; $ids = array(); $loopcounter = 0; query_posts("showposts=" . get_option('bold_homepage_featured') . "&cat=" . get_catId(get_option('bold_feat_cat'))); while (have_posts()) { the_post(); $loopcounter++; ?> <?php if ($loopcounter % 2 != 0) { ?> <div class="featured-block2"> <?php } else { ?> <div class="featured-block"> <?php } ?> <div class="featured-block-inside"> <div class="featured-date"><span class="featured-date-left"></span><span class="featured-date-inside"><?php the_time(get_option('bold_date_format')); ?> </span></div> <span class="titles-featured"><a href="<?php the_permalink();
wp_enqueue_script('flexslider'); $featured_slider_class = ''; if ('on' == et_get_option('nimble_slider_auto', 'on')) { $featured_slider_class .= ' et_slider_auto et_slider_speed_' . et_get_option('nimble_slider_autospeed', '7000'); } ?> <div id="featured" class="flexslider<?php echo $featured_slider_class; ?> "> <ul class="slides"> <?php $featured_cat = et_get_option('nimble_feat_cat'); $featured_num = et_get_option('nimble_featured_num', '3'); if ('false' == et_get_option('nimble_use_pages', 'false')) { $featured_query = new WP_Query(apply_filters('et_featured_post_args', array('posts_per_page' => $featured_num, 'cat' => get_catId(et_get_option('nimble_feat_posts_cat'))))); } else { global $pages_number; if ('' != et_get_option('nimble_feat_pages')) { $featured_num = count(et_get_option('nimble_feat_pages')); } else { $featured_num = $pages_number; } $featured_query = new WP_Query(apply_filters('et_featured_page_args', array('post_type' => 'page', 'orderby' => 'menu_order', 'order' => 'ASC', 'post__in' => (array) et_get_option('nimble_feat_pages'), 'posts_per_page' => (int) $featured_num))); } while ($featured_query->have_posts()) { $featured_query->the_post(); $et_nimble_settings = maybe_unserialize(get_post_meta($post->ID, '_et_nimble_settings', true)); $link = isset($et_nimble_settings['et_fs_link']) && !empty($et_nimble_settings['et_fs_link']) ? $et_nimble_settings['et_fs_link'] : get_permalink(); $title = isset($et_nimble_settings['et_fs_title']) && !empty($et_nimble_settings['et_fs_title']) ? $et_nimble_settings['et_fs_title'] : get_the_title(); $description = isset($et_nimble_settings['et_fs_description']) && !empty($et_nimble_settings['et_fs_description']) ? $et_nimble_settings['et_fs_description'] : truncate_post(40, false);
$('div.tabs ul.tabNavigation a').click(function () { tabContainers.hide().filter(this.hash).show(); $('div.tabs ul.tabNavigation a').removeClass('selected'); $(this).addClass('selected'); return false; }).filter(':first').click(); }); }); </script> <!-- DEL ME --> <div class="tabs"> <?php $feat_cat = get_catId(get_option('coldstone_feat_cat')); $ids = array(); ?> <?php $my_query = new WP_Query("showposts={$coldstone_featured_number}&cat={$feat_cat}&order=DESC"); while ($my_query->have_posts()) { $my_query->the_post(); $do_not_duplicate = $post->ID; $loopcounter++; ?> <div id="tab<?php echo $loopcounter; ?> "> <?php $image = get_post_meta($post->ID, 'Featured', $single = true);
if ('slide' == et_get_option('flexible_slider_effect')) { $featured_slider_class .= ' et_slider_effect_slide'; } ?> <div id="featured" class="flexslider<?php echo esc_attr($featured_slider_class); ?> "> <ul class="slides"> <?php $featured_cat = et_get_option('flexible_feat_cat'); $featured_cat_term = get_term_by('name', $featured_cat, 'project_category'); $featured_num = et_get_option('flexible_featured_num'); if (et_get_option('flexible_use_pages', 'false') == 'false') { if ('on' == et_get_option('flexible_use_posts', 'false')) { $featured_query = new WP_Query(array('posts_per_page' => (int) $featured_num, 'cat' => (int) get_catId(et_get_option('flexible_feat_posts_cat')))); } else { $featured_query = new WP_Query(array('post_type' => 'project', 'posts_per_page' => (int) $featured_num, 'tax_query' => array(array('taxonomy' => 'project_category', 'field' => 'id', 'terms' => (array) $featured_cat_term->term_id, 'operator' => 'IN')))); } } else { global $pages_number; if (et_get_option('flexible_feat_pages') != '') { $featured_num = count(et_get_option('flexible_feat_pages')); } else { $featured_num = $pages_number; } $et_featured_pages_args = array('post_type' => 'page', 'orderby' => 'menu_order', 'order' => 'ASC', 'posts_per_page' => (int) $featured_num); if (is_array(et_get_option('flexible_feat_pages', '', 'page'))) { $et_featured_pages_args['post__in'] = (array) array_map('intval', et_get_option('flexible_feat_pages', '', 'page')); } $featured_query = new WP_Query($et_featured_pages_args);
<div id="slides" style="width:<?php echo get_option('of_swidth'); ?> px;height:<?php echo get_option('of_sheight'); ?> px;"> <div class="slides_container" style="width:<?php echo get_option('of_swidth'); ?> px;height:<?php echo get_option('of_sheight'); ?> px;"> <?php $ex = get_catId(get_option('of_slider_category')); global $post; $args = array('numberposts' => $nslide, 'category' => $ex); $myposts = get_posts($args); foreach ($myposts as $post) { setup_postdata($post); ?> <a href="<?php echo get_permalink(); ?> " title="twelve.inch | Flickr - Photo Sharing!" target="_blank"><img src="<?php echo get_template_directory_uri(); ?> /thumb.php?src=<?php echo get_post_meta($post->ID, 'dbt_frontslider', true);
<!-- Start Featured --> <div id="featured"> <div id="slides"> <?php global $wp_embed, $ids; $ids = array(); $arr = array(); $i = 1; $featured_cat = get_option('feather_feat_cat'); $featured_num = get_option('feather_featured_num'); if (get_option('feather_use_pages') == 'false') { query_posts("showposts={$featured_num}&cat=" . get_catId($featured_cat)); } else { global $pages_number; if (get_option('feather_feat_pages') != '') { $featured_num = count(get_option('feather_feat_pages')); } else { $featured_num = $pages_number; } query_posts(array('post_type' => 'page', 'orderby' => 'menu_order', 'order' => 'ASC', 'post__in' => (array) get_option('feather_feat_pages'), 'showposts' => (int) $featured_num)); } while (have_posts()) { the_post(); $et_feather_settings = maybe_unserialize(get_post_meta($post->ID, 'et_feather_settings', true)); $variation = isset($et_feather_settings['et_fs_variation']) ? (int) $et_feather_settings['et_fs_variation'] : 1; $link = isset($et_feather_settings['et_fs_link']) && !empty($et_feather_settings['et_fs_link']) ? $et_feather_settings['et_fs_link'] : get_permalink(); $title = isset($et_feather_settings['et_fs_title']) && !empty($et_feather_settings['et_fs_title']) ? $et_feather_settings['et_fs_title'] : get_the_title(); $description = isset($et_feather_settings['et_fs_description']) && !empty($et_feather_settings['et_fs_description']) ? $et_feather_settings['et_fs_description'] : truncate_post(450, false); $video = isset($et_feather_settings['et_fs_video']) && !empty($et_feather_settings['et_fs_video']) ? $et_feather_settings['et_fs_video'] : ''; $video_manual_embed = isset($et_feather_settings['et_fs_video_embed']) && !empty($et_feather_settings['et_fs_video_embed']) ? $et_feather_settings['et_fs_video_embed'] : ''; $additional_class = ' ';
<p><?php truncate_post(90); ?> </p> </div> <!-- end .blurb --> <?php $blog_current_post++; } ?> <?php } wp_reset_query(); ?> <a href="<?php echo esc_url(get_category_link(get_catId(get_option('feather_home_recentblog_section')))); ?> " class="blog-more"><?php esc_html_e('More', 'Feather'); ?> </a> </div> <!-- end .recent-inner --> </div> <!-- end .home-recent --> <?php } ?> <?php if (get_option('feather_display_recentwork_section') == 'on') { ?> <div class="home-recent">
<?php $i = 1; $featured_args = array('posts_per_page' => is_category() ? 2 : 4, 'cat' => (int) get_catId(is_category() ? get_query_var('cat') : et_get_option('nexus_feat_posts_cat'))); if (is_category()) { $sticky_posts = get_option('sticky_posts'); if (is_array($sticky_posts)) { $featured_args['post__in'] = $sticky_posts; } else { $featured_args['orderby'] = 'rand'; } } $featured_query = new WP_Query(apply_filters('et_featured_post_args', $featured_args)); ?> <div id="featured"> <div class="container"> <div id="et-featured-posts" class="clearfix"> <?php while ($featured_query->have_posts()) { $featured_query->the_post(); $post_id = get_the_ID(); $slide_more_link = get_post_meta($post_id, '_et_slide_more_link', true); $more_link = '' != $slide_more_link ? $slide_more_link : get_permalink(); $class = 'et-first'; $truncate_length = 610; $width = (int) apply_filters('et_slider_image_width', 578); $height = (int) apply_filters('et_slider_image_height', 420); $title = get_the_title(); if (2 === $i) { $class = 'et-second'; $truncate_length = 250;
<?php $feat_cat = get_catId(get_option('puretype_feat_cat')); $ids = array(); query_posts("cat={$feat_cat}&showposts={$puretype_homepage_featured};"); while (have_posts()) { the_post(); ?> <div class="featured"> <span class="titles-featured"><a href="<?php the_permalink(); ?> " rel="bookmark" title="Permanent Link to <?php the_title(); ?> "> <?php the_title(); ?> </a></span><span class="featured-date">| <?php the_time(get_option('puretype_date_format')); ?> </span> <?php $thumb = get_post_meta($post->ID, 'Thumbnail', $single = true); ?> <?php if ($thumb == '' && $puretype_grab_image == 'on') { $thumb = catch_that_image(); }