Created
August 9, 2016 09:05
-
-
Save cannelflow/bc78645a8b191448592ec51ec74c5d0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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