Skip to content

Instantly share code, notes, and snippets.

@dabrattoli
Created February 28, 2017 06:05
Show Gist options
  • Save dabrattoli/4421324275b3ba27f90f06ba3438e64a to your computer and use it in GitHub Desktop.
Save dabrattoli/4421324275b3ba27f90f06ba3438e64a to your computer and use it in GitHub Desktop.
Developer Workshop - Create Your Own Movie Review Website - single-movie_reviews.php
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @since 1.0
* @version 1.0
*/
get_header(); ?>
<div class="wrap">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/custom/content', 'review' );
endwhile; // End of the loop.
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .wrap -->
<?php get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment