Add theme wrapper, re-organize template files
- Implement scribu’s Theme Wrapper (see base.php) - Move templates, comments.php, and searchform.php to templates/ folder - Rename loop- files to content- - Remove all hooks except roots_head and roots_footer - Use templates/page-header.php for page titles - Use head.php for everything in <head>
This commit is contained in:
4
templates/content-page.php
Normal file
4
templates/content-page.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php while (have_posts()) : the_post(); ?>
|
||||
<?php the_content(); ?>
|
||||
<?php wp_link_pages(array('before' => '<nav class="pagination">', 'after' => '</nav>')); ?>
|
||||
<?php endwhile; ?>
|
||||
Reference in New Issue
Block a user