template/wordpress/single.php in edge_framework-0.10.0 vs template/wordpress/single.php in edge_framework-1.0.0
- old
+ new
@@ -1,23 +2 @@
-<?php
-/* ----------------------
- Single Post Template
----------------------- */
-get_header(); ?>
-
-<p><small>single.php</small></p>
-
-<?php while (have_posts() ) : the_post(); ?>
- <h1><?php echo get_the_title(); ?></h1>
- <h4><?php echo date("D, d M Y" , strtotime(get_the_date() ) ); ?></h4>
- <?php echo get_the_content(); ?>
-
- <?php
- $categories = get_the_category();
- $category = $categories[0];
- ?>
- <a href="<?php echo get_category_link($category->cat_ID); ?> ">
- ← Back
- </a>
-<?php endwhile; ?>
-
-<?php get_footer(); ?>
+<?php get_template_part("content", "post"); ?>
\ No newline at end of file