<div class="row">
        <div class="one columns"></div>
        <div class="ten columns">
        <h2>latest news</h2>
       <div class="row">
       
       
<?php 
$args = array('numberposts' => 3, 'offset' => 0, 'category' => 0, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', 'post_status' => 'publish', 'suppress_filters' => true);
$recent_posts = wp_get_recent_posts($args);
foreach ($recent_posts as $recent) {
    echo '<div class="four columns">
            <div class="latest">
                <div>
					<a href="' . get_permalink($recent["ID"]) . '">' . get_the_post_thumbnail($recent["ID"], array(278, 278)) . '</a>
					<a href="' . get_permalink($recent["ID"]) . '" class="title">' . $recent["post_title"] . '</a>
					<cite>' . get_the_date('d F Y', $recent["ID"]) . '</cite>
					<p>' . get_the_excerpt_by_id($recent["ID"]) . '</p>
				</div>
            </div>
        </div>';
}
?>
   </div>
</div>
<div class="one columns"></div>
 </div>
</div>

<?php 
get_footer();
Beispiel #2
0
        $post_content = apply_filters('the_content', $post->post_content);
        if (is_footer_included($post_content)) {
            $post_footer = split_footer($post_content);
            $post_content = content_without_footer($post_content);
        }
        $post_link = get_the_permalink();
        if (preg_match('/<a (.+?)>/', get_the_content(), $match)) {
            $link = array();
            foreach (wp_kses_hair($match[1], array('http')) as $attr) {
                $link[$attr['name']] = $attr['value'];
            }
            $post_link = $link['href'];
            $related_postid = url_to_postid($post_link);
            $related_image_url = wp_get_attachment_image_src(get_post_thumbnail_id($related_postid), 'full');
            $related_title = get_the_title($related_postid);
            $related_excerpt = get_the_excerpt_by_id($related_postid);
            $post_content = insert_related_article($post_content, $post_link, $related_image_url[0], $related_title, $related_excerpt);
        }
        if (is_brightcove_included($post_content)) {
            $post_content = replace_brightcove_ids($post_content, $bcpid, $bckey);
        }
        if (class_exists('RDMGalleryImport')) {
            if (is_gallery_included($post_content)) {
                $post_content = replace_gallery_ids($post_content);
            }
        }
        ?>

<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->