<?php
$pagename = 'blog';

//get about us page
	global $post;
	$args = array(
		'post_type' =>'page',
		'pagename' => $pagename
	);
	$page_posts = get_posts($args);
?>
<?php if($page_posts) { ?> 
<?php
	$count=0;
	foreach($page_posts as $post) : setup_postdata($post);
	$count++;
?>			
		<div id="blog">
			<div class="content">
				<div class="title-content">
					<div class="container">
						<div class="row">
							<div class="span12">
								<h2>Blog</h2>
							</div>
						</div>
					</div>
				</div>
	<?php 
		$p_tagline = get_post_meta($post->ID, 'pt_tagline', true); if ($p_tagline) {
	?>					
				<div class="tagline-content">
					<div class="container">
						<div class="row">
							<div class="span12">
								<p><?php echo $p_tagline; ?></p>
							</div>
						</div>
					</div>
				</div>
	<?php } ?>			
				<div class="main">
					<div class="container">
						<div class="row">

							<?php require_once (get_template_directory() . '/includes/blogpost.php'); ?>
							<?php require_once (get_template_directory() . '/includes/home-sidebar.php'); ?>	

						</div>
					</div>
				</div><!-- /.main -->
			</div>
		</div><!-- /#blog -->
<?php endforeach; ?>									
<?php } ?>				