Skip to content

Instantly share code, notes, and snippets.

@cannelflow
Created August 9, 2016 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cannelflow/bc78645a8b191448592ec51ec74c5d0d to your computer and use it in GitHub Desktop.
Save cannelflow/bc78645a8b191448592ec51ec74c5d0d to your computer and use it in GitHub Desktop.
<?php
//get data from advanced custome field
$project_title = get_field('project_title');
$project_body = get_field('project_body');
?>
<section id="project">
<article>
<div class="container">
<div class="section-header">
<h2><?php echo $project_title ; ?></h2>
<p class="lead"><?php echo $project_body ; ?></p>
</div>
<div class="row text-center">
<?php $loop = new WP_Query( array( 'post_type' => 'project_feature', 'orderby' => 'post_id','order'=>'ASC' ) ); ?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<div class="col-sm-4">
<?php
if(has_post_thumbnail()) {
the_post_thumbnail();
}
?>
<!--<img src="<?php bloginfo('stylesheet_directory') ; ?>/assets/img/icon-design.png" alt="icon design">-->
<h3><?php the_title() ; ?></h3>
<p><?php the_content() ; ?>.</p>
</div>
<?php endwhile; ?>
</div>
</div>
</article>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment