Skip to content

Instantly share code, notes, and snippets.

View ckoerner's full-sized avatar
🙃

Chris Koerner ckoerner

🙃
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ckoerner on github.
  • I am ckoerner (https://keybase.io/ckoerner) on keybase.
  • I have a public key whose fingerprint is E43E 0A19 48D0 D78C 3EBF D207 8B43 5372 88E8 979E

To claim this, I am signing this object:

@ckoerner
ckoerner / ACF Example 4
Created August 7, 2014 14:14
ACF Example 4
<div class="swiper-container">
<div class="swiper-wrapper">
<?php
// check if the repeater field has rows of data
if( have_rows('gallery_images') ):
// loop through the rows of data
while ( have_rows('gallery_images') ) : the_row(); ?>
<!--First Slide-->
@ckoerner
ckoerner / ACF Example 3
Created August 7, 2014 14:13
ACF Example 3
<h2>NOSH</h2>
<?php
// check if the repeater field has rows of data
if( have_rows('app') ):
// loop through the rows of data
while ( have_rows('app') ) : the_row(); ?>
<p><strong><?php the_sub_field('item'); ?></strong> <strong>{<?php the_sub_field('price');?>}</strong><br/>
@ckoerner
ckoerner / ACF Example 2
Created August 7, 2014 14:13
ACF Example 2
<div class="grid_6 spotlight project" style="background-color:<?php the_field('background_color'); ?>">
<a href="<?php the_permalink(); ?>">
<img src="<?php the_field( 'homepage_slider_image' ); ?>">
</a>
<h4>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h4>
<?php the_field( 'description'); ?>
@ckoerner
ckoerner / ACF Example 1
Created August 7, 2014 14:12
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() ;?>