$content = $post->post_content; $searchimages = '~<img [^>]* />~'; /* Run preg_match_all to grab all the images and save the results in $pics */ preg_match_all($searchimages, $content, $pics); // Check to see if we have at least 1 image $iNumberOfPics = count($pics[0]); if ($iNumberOfPics > 0 || has_post_thumbnail()) { ?> <li class="blog_item"> <div class="flex_thumbnail"> <?php if (function_exists('has_post_thumbnail') && has_post_thumbnail()) { ?> <?php inkthemes_get_thumbnail(270, 345); ?> <?php } else { ?> <?php inkthemes_get_image(270, 345); ?> <?php } ?> </div> <div class="flex_content"> <h3><a href="<?php the_permalink();
$wp_query->is_home = false; /* Start the Loop. */ if (have_posts()) { while (have_posts()) { the_post(); ?> <li id="post-<?php the_ID(); ?> " <?php post_class('animated'); ?> > <?php if (function_exists('has_post_thumbnail') && has_post_thumbnail()) { inkthemes_get_thumbnail(258, 190); } else { inkthemes_get_image(258, 190); } ?> <h2><a href="<?php the_permalink(); ?> " rel="bookmark" title="<?php _e('Permanent Link to ', 'colorway') . the_title_attribute(); ?> "><?php the_title(); ?> </a></h2> <?php
query_posts('showposts=' . $limit . '&paged=' . $paged); $wp_query->is_archive = true; $wp_query->is_home = false; ?> <!-- Start the Loop. --> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div class="post"> <?php if (function_exists('has_post_thumbnail') && has_post_thumbnail()) { ?> <?php inkthemes_get_thumbnail(250, 170); ?> <?php } else { ?> <?php inkthemes_get_image(250, 170); ?> <?php } ?> <div class="post_content"> <h1 class="post_title"><a href="<?php the_permalink();