Skip to content

Instantly share code, notes, and snippets.

@JBreit
Created April 15, 2014 20:23
Show Gist options
  • Save JBreit/10769224 to your computer and use it in GitHub Desktop.
Save JBreit/10769224 to your computer and use it in GitHub Desktop.
<div class="billboard">
<div class="carousel">
<div class="container">
</div><!-- .container -->
</div><!-- .carousel -->
</div><!-- .billboard -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="container">
<header class="entry-header">
<h1 class="entry-title"><?php //the_title(); ?></h1>
</header><!-- .entry-header -->
</div><!-- .container -->
<div class="entry-content">
<?php the_content(); ?>
<div class="services">
<div class="container">
<h2 class="subtitle"><?php echo $subtitle[0]; ?></h2>
<?php foreach($services as $item): ?>
<div class="services-item">
<header class="services-header"><?php echo $item['service']; ?></header>
<p><?php echo $item['description']; ?></p>
</div>
<?php endforeach; ?>
</div><!-- .container -->
</div>
</div><!-- .entry-content -->
<div class="entry-content">
<div class="featured-projects">
<div class="container">
<h2 class="subtitle"><?php echo $subtitle[1]; ?></h2>
<?php $client = types_render_field("client", array('raw' => true)); ?>
<?php the_post_thumbnail(); ?>
<ul>
<?php foreach($list as $item): ?>
<li><?php echo $item['ingredient']; ?></li>
<?php endforeach; ?>
</ul>
</div><!-- .container -->
</div><!-- .featured-projects -->
</div><!-- .entry-content -->
<div class="entry-content">
<div class="recent-posts">
<div class="container">
<h2 class="subtitle"><?php echo $subtitle[2]; ?></h2>
<ul>
<?php
$latest_blog_posts = new WP_Query( array( 'posts_per_page' => 3 ) );
if ( $latest_blog_posts->have_posts() ) : while ( $latest_blog_posts->have_posts() ) : $latest_blog_posts->the_post();
// Loop output goes here
get_template_part( 'content', get_post_format() );
endwhile; endif;
wp_reset_postdata();
?>
</ul>
</div><!-- .container -->
</div><!-- .featured-projects -->
</div><!-- .entry-content -->
<div class="entry-content">
<div class="why-us">
<div class="container">
<h2 class="subtitle"><?php echo $subtitle[3]; ?></h2>
<ul>
<?php foreach($why as $item): ?>
<li><?php echo $item['question']; ?></li>
<li><?php echo $item['answer']; ?></li>
<?php endforeach; ?>
</ul>
</div><!-- .container -->
</div><!-- .featured-projects -->
</div><!-- .entry-content -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment