?> <?php comments_template(); ?> <?php } else { ?> <h2>Sorry, no posts found</h2> <p>Try using the search bar instead</p> <?php } //end THE LOOP ?> <section id="featured-content"> <?php awesome_products(6, 'Latest Products in the Shop:'); ?> </section> </main><!-- end #content --> <?php get_sidebar('frontpage'); //include sidebar-frontpage.php get_footer(); //include footer.php
<aside id="sidebar"> <section class="widget"> <?php awesome_products(4, 'Shop Now!'); ?> </section> <?php //if there are no widgets in the blog_sidebar, do some fallback content if (!dynamic_sidebar('blog_sidebar')) { ?> <section id="categories" class="widget"> <h3 class="widget-title">Popular Categories </h3> <ul> <?php //show up to 10 most popular categories by number of posts wp_list_categories(array('title_li' => '', 'show_count' => 1, 'orderby' => 'count', 'order' => 'DESC', 'number' => 10)); ?> </ul> </section> <section id="archives" class="widget"> <h3 class="widget-title"> Archives </h3> <ul> <?php wp_get_archives(array('type' => 'yearly')); ?> </ul> </section> <section id="tags" class="widget"> <h3 class="widget-title"> Tags </h3>