Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
//get data from advanced custome field
$project_title = get_field('project_title');
$project_body = get_field('project_body');
<section id="project">
<div class="container">
<div class="section-header">
<h2><?php echo $project_title ; ?></h2>
<p class="lead"><?php echo $project_body ; ?></p>
<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">
if(has_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>
<?php endwhile; ?>
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.