Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.