</figure> <?php } ?> <?php the_title('<h1 itemprop="headline">', '</h1>'); ?> </header><!-- .entry-header --> <aside class="entry-meta"> <?php motoscene_posted_on(); ?> <?php ms_share_display(); ?> </aside><!-- .entry-meta --> <div class="right" itemprop="text"> <?php the_content(); ?> <?php wp_link_pages(array('before' => '<div class="page-links">' . esc_html__('Pages:', 'motoscene-theme'), 'after' => '</div>'));
function motoscene_hero_area() { $args = array('numberposts' => '1', 'post_status' => 'publish'); $recent_posts = wp_get_recent_posts($args); foreach ($recent_posts as $recent) { $thumb_id = get_post_thumbnail_id(); $thumb_url = wp_get_attachment_image_src($thumb_id, 'large', true); ?> <article class="most-recent relative bgcover" style="background-image:url(<?php echo $thumb_url[0]; ?> );"> <a href="<?php the_permalink(); ?> " class="block img-shadow"> <h1><?php the_title(); ?> </h1> </a> <?php motoscene_posted_on(); ?> </article> <?php } update_post_caches($posts); wp_reset_postdata(); }