Amy-Mir / single.php
single.php
Raw
<?php
/**
 * The template for displaying all single posts
 *
 * @package UnderStrap
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

$hero_args = array(
	"image"    		=> get_field("mobile_menu_cover", "options"),
	"pageTitle"   	=> " "
);


// Retrieve 4 last recent posts
$recentPosts = new WP_Query(array(
    "posts_per_page" => 4
));

get_header();

?>

<main>	
    <?php get_template_part('global-templates/cover', null, $hero_args); ?>

	<section class="S01 p-t-5 container">
		<div class="single__wrapperGrid">
			<div class="single__postContent">
				<?php get_template_part( "global-templates/single", "post" ) ?>
			</div>
			<div class="single__sideBar">
				<?php get_template_part( "loop-templates/single", "sidebar" )?>
			</div>
		</div>
	</section>
</main>

<?php
get_footer();


				// while ( have_posts() ) {
				// 	the_post();
				// 	get_template_part( 'loop-templates/content', 'single' );
				// 	understrap_post_nav();

				// 	// If comments are open or we have at least one comment, load up the comment template.
				// 	if ( comments_open() || get_comments_number() ) {
				// 		comments_template();
				// 	}
				// }