Skip to content

Instantly share code, notes, and snippets.

@ckoerner
Created August 7, 2014 14:12
Show Gist options
  • Save ckoerner/05e140a85c3e6817c817 to your computer and use it in GitHub Desktop.
Save ckoerner/05e140a85c3e6817c817 to your computer and use it in GitHub Desktop.
ACF Example 1
<?php
$args = array(
'post_type' => 'services'
);
$the_query = new WP_query( $args );
?>
<?php if ( have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post() ;?>
<?php get_template_part( 'content', 'services'); ?>
<?php endwhile; endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment