<div id="featured-category"> <?php $featured_category = get_theme_option('featured_category_id1'); $featured_number = get_theme_option('featured_number1'); ?> <?php if(($featured_category == 'Choose a category:') || ($featured_number == 'Number of post:')) { ?> <?php { /* nothing */ } ?> <?php } else { ?> <div class="featured-cat-entry"> <h3> <?php $cat_id = get_cat_id($featured_category); $category = get_cat_name($cat_id); echo $category; ?></h3> <?php $category_id = get_cat_id($featured_category); $my_query = new WP_Query('cat='. $category_id . '&' . 'offset=' . '&' . 'showposts='. $featured_number); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; $the_post_ids = get_the_ID(); ?> <div class="featured-cat-meta post-<?php the_ID(); ?>"> <?php $values = get_post_custom_values("feat-cat-img"); if (isset($values<0>)) { ?> <div class="featured-cat-img"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php $values = get_post_custom_values("feat-cat-img"); echo $values<0>; ?>" alt="<?php the_title(); ?>" width="50" height="50" /></a> </div><!-- FEATURED CATEGORY IMAGE END --> <?php } else { ?> <div class="featured-cat-img"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo get_featcat_image(); ?>" alt="<?php the_title(); ?>" width="50" height="50" /></a> </div><!-- FEATURED CATEGORY IMAGE END --> <?php } ?> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <span class="featured-cat-date">Posted On <?php the_time('l, F jS Y') ?> <?php edit_post_link('Edit'); ?></span> <p><?php the_excerpt_feat_cat(); ?></p> <div class="clearfix"></div> </div><!-- FEATURED CATEGORY META <?php the_ID(); ?> END --> <?php endwhile;?> </div><!-- FEATURED CATEGORY 1 ENTRY END --> <?php } ?> <?php $featured_category = get_theme_option('featured_category_id2'); $featured_number = get_theme_option('featured_number2'); ?> <?php if(($featured_category == 'Choose a category:') || ($featured_number == 'Number of post:')) { ?> <?php { /* nothing */ } ?> <?php } else { ?> <div class="featured-cat-entry"> <h3> <?php $cat_id = get_cat_id($featured_category); $category = get_cat_name($cat_id); echo $category; ?></h3> <?php $category_id = get_cat_id($featured_category); $my_query = new WP_Query('cat='. $category_id . '&' . 'offset=' . '&' . 'showposts='. $featured_number); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; $the_post_ids = get_the_ID(); ?> <div class="featured-cat-meta post-<?php the_ID(); ?>"> <?php $values = get_post_custom_values("feat-cat-img"); if (isset($values<0>)) { ?> <div class="featured-cat-img"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php $values = get_post_custom_values("feat-cat-img"); echo $values<0>; ?>" alt="<?php the_title(); ?>" width="50" height="50" /></a> </div><!-- FEATURED CATEGORY IMAGE END --> <?php } else { ?> <div class="featured-cat-img"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo get_featcat_image(); ?>" alt="<?php the_title(); ?>" width="50" height="50" /></a> </div><!-- FEATURED CATEGORY IMAGE END --> <?php } ?> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <span class="featured-cat-date">Posted On <?php the_time('l, F jS Y') ?> <?php edit_post_link('Edit'); ?></span> <p><?php the_excerpt_feat_cat(); ?></p> <div class="clearfix"></div> </div><!-- FEATURED CATEGORY META <?php the_ID(); ?> END --> <?php endwhile;?> </div><!-- FEATURED CATEGORY 2 ENTRY END --> <?php } ?> </div><!-- FEATURED CATEGORY END -->
<div id="featured-category"><?php $featured_category = get_theme_option('featured_category_id1'); $featured_number = get_theme_option('featured_number1'); ?><?php if(($featured_category == 'Choose a category:') || ($featured_number == 'Number of post:')) { ?><?php { /* nothing */ } ?><?php } else { ?><div class="featured-cat-entry"><h3> <?php $cat_id = get_cat_id($featured_category); $category = get_cat_name($cat_id); echo $category; ?></h3><?php$category_id = get_cat_id($featured_category);$my_query = new WP_Query('cat='. $category_id . '&' . 'offset=' . '&' . 'showposts='. $featured_number);while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; $the_post_ids = get_the_ID();?><div class="featured-cat-meta post-<?php the_ID(); ?>"><?php $values = get_post_custom_values("feat-cat-img"); if (isset($values<0>)) { ?><div class="featured-cat-img"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php $values = get_post_custom_values("feat-cat-img"); echo $values<0>; ?>" alt="<?php the_title(); ?>" width="50" height="50" /></a></div><!-- FEATURED CATEGORY IMAGE END --><?php } else { ?><div class="featured-cat-img"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo get_featcat_image(); ?>" alt="<?php the_title(); ?>" width="50" height="50" /></a></div><!-- FEATURED CATEGORY IMAGE END --><?php } ?><h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2><span class="featured-cat-date">Posted On <?php the_time('l, F jS Y') ?> <?php edit_post_link('Edit'); ?></span><p><?php the_excerpt_feat_cat(); ?></p><div class="clearfix"></div></div><!-- FEATURED CATEGORY META <?php the_ID(); ?> END --><?php endwhile;?> </div><!-- FEATURED CATEGORY 1 ENTRY END --><?php } ?><?php $featured_category = get_theme_option('featured_category_id2'); $featured_number = get_theme_option('featured_number2'); ?><?php if(($featured_category == 'Choose a category:') || ($featured_number == 'Number of post:')) { ?><?php { /* nothing */ } ?><?php } else { ?><div class="featured-cat-entry"><h3> <?php $cat_id = get_cat_id($featured_category); $category = get_cat_name($cat_id); echo $category; ?></h3><?php$category_id = get_cat_id($featured_category);$my_query = new WP_Query('cat='. $category_id . '&' . 'offset=' . '&' . 'showposts='. $featured_number);while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; $the_post_ids = get_the_ID();?><div class="featured-cat-meta post-<?php the_ID(); ?>"><?php $values = get_post_custom_values("feat-cat-img"); if (isset($values<0>)) { ?><div class="featured-cat-img"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php $values = get_post_custom_values("feat-cat-img"); echo $values<0>; ?>" alt="<?php the_title(); ?>" width="50" height="50" /></a></div><!-- FEATURED CATEGORY IMAGE END --><?php } else { ?><div class="featured-cat-img"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo get_featcat_image(); ?>" alt="<?php the_title(); ?>" width="50" height="50" /></a></div><!-- FEATURED CATEGORY IMAGE END --><?php } ?><h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2><span class="featured-cat-date">Posted On <?php the_time('l, F jS Y') ?> <?php edit_post_link('Edit'); ?></span><p><?php the_excerpt_feat_cat(); ?></p><div class="clearfix"></div></div><!-- FEATURED CATEGORY META <?php the_ID(); ?> END --><?php endwhile;?> </div><!-- FEATURED CATEGORY 2 ENTRY END --><?php } ?></div><!-- FEATURED CATEGORY END -->
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo get_featcat_image(); ?>" alt="<?php the_title(); ?>" width="50" height="50" /></a>
<!--<img src="<?php echo get_post_image(); ?>" alt="<?php the_title(); ?>" width="200" height="130" />
โปรดรอ
cymiz.com insurance