-
Notifications
You must be signed in to change notification settings - Fork 24
Example single.php
Chris Reynolds edited this page Nov 9, 2015
·
6 revisions
<?php
/**
* The template for displaying all single posts.
*/
get_header(); ?>
<?php wds_page_builder_area( 'hero' ); // Get a registered Page Builder area named "hero". ?>
<div class="wrap">
<?php while ( have_posts() ) : the_post(); ?>
<?php wds_page_builder_area( 'before_content' ); // Get a registered Page Builder area named "before_content". ?>
<div class="primary content-area">
<main id="main" class="site-main" role="main">
<?php get_template_part( 'content', 'single' ); ?>
<?php get_template_part( 'content', 'post-author' ); ?>
<?php the_post_navigation(); ?>
<?php wds_page_builder_area(); // Get the default Page Builder Area. ?>
</main><!-- #main -->
</div><!-- .primary -->
<?php endwhile; // end of the loop. ?>
<?php wds_page_builder_area( 'after_content' ); // Get a registered Page Builder area named "after_content". ?>
</div><!-- .wrap -->
<?php get_footer(); ?>Still missing something? Let us know if you think this wiki is missing some information or could use some more details! Open an issue in the issue tracker with the information you're looking for and we'll make sure that information gets added!