/** * Function to show daily popular posts. * * @since 1.2 * * @param mixed $args Arguments list */ function tptn_show_daily_pop_posts($args = NULL) { if (is_array($args)) { $args['daily'] = 1; $args['manual'] = 1; } else { $args .= '&daily=1&is_manual=1'; } tptn_show_pop_posts($args); }
<section class="banner"> <div class="image-container" style="background-image: url('<?php echo get_template_directory_uri(); ?> /img/welcome.jpeg');"></div> <div class="description-container"> <div class="image-description"> <h2><span><em>welcome to //</em></span> The Edit</h2> <p class="description">By Kaylyn and Courtnee Kyle. A lifestyle blog that follows us on our adventures in fashion and beauty, travel, health and wellness and everything in between. Two blondes, one blog, endless opportunities.</p> <p class="date">February 28, 2016</p> </div> <div class="popular-posts"> <?php if (function_exists('tptn_show_pop_posts')) { tptn_show_pop_posts(); } ?> </div> </section> <main role="main"> <!-- section --> <section class="homepage latest-posts"> <h1 class="strike"><span><?php _e('Latest Posts', 'html5blank'); ?> </span></h1> <?php