rendered paste body<?phpfunction render_content() { global $posts; ?> <?php if (have_posts()) : ?> <h4 class="page-title"><?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php /* If this is a category archive */ if (is_category()) { ?> <?php _e("Archive for"); ?> <?php echo single_cat_title(); ?> <?php /* If this is a tag archive */ } elseif (is_tag()) { ?> <?php _e("Archive for"); ?> <?php echo single_tag_title(); ?> <?php /* If this is a daily archive */ } elseif (is_day()) { ?> <?php _e("Archive for"); ?> <?php the_time('F jS, Y'); ?> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <?php _e("Archive for"); ?> <?php the_time('F, Y'); ?> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <?php _e("Archive for"); ?> <?php the_time('Y'); ?> <?php /* If this is a search */ } elseif (is_search()) { ?> <?php _e("Search Results"); ?> <?php /* If this is an author archive */ } elseif (is_author()) { ?> <?php _e("Author Archive"); ?> <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <?php _e("Blog Archives"); ?> <?php } //do not delete ?> </h4> <?php while (have_posts()) : the_post(); // the loop ?> <!--Post Wrapper Class--> <div <?php if (function_exists('post_class')) { post_class(); } else { echo 'class="post"'; } ?>> <!--Title/Date/Meta--> <div class="title wrap"> <div class="post-title"> <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> </div> <div class="date"> <span class="weekday"><?php the_time( 'l' ); ?><span class="weekday-comma">,</span></span> <span class="month"><?php the_time( 'F' ); ?></span> <span class="day"><?php the_time( 'j' ); ?><span class="day-suffix"><?php the_time( 'S' ); ?></span><span class="day-comma">,</span></span> <span class="year"><?php the_time( 'Y' ); ?></span> </div> </div> <!--post text with the read more link--> <div class="post-content"> <?php the_content('Read More→'); ?> </div> </div><!--end .post--> <?php comments_template(); // include comments template ?> <?php endwhile; // end of one post ?> <!-- Previous/Next page navigation --> <div class="paging clearfix"> <div class="alignleft"><?php previous_posts_link('« Previous Page') ?></div> <div class="alignright"><?php next_posts_link('Next Page »') ?></div> </div> <?php else : // do not delete ?> <h3><?php _e("Page not Found"); ?></h3> <p><?php _e("We're sorry, but the page you're looking for isn't here."); ?></p> <p><?php _e("Try searching for the page you are looking for or using the navigation in the header or sidebar"); ?></p> <?php endif; // do not delete ?><?php }add_action( 'builder_layout_engine_render_content', 'render_content' );do_action( 'builder_layout_engine_render', basename( __FILE__ ) );?>