Skip to content

Instantly share code, notes, and snippets.

@mariokerkhof
Created January 30, 2016 14:39
Show Gist options
  • Save mariokerkhof/265d08de99be324eacb1 to your computer and use it in GitHub Desktop.
Save mariokerkhof/265d08de99be324eacb1 to your computer and use it in GitHub Desktop.
if( $column_name == 'teams' ) {
if( have_rows('Stand') ){
while ( have_rows('Stand') ) : the_row();
// http://www.advancedcustomfields.com/resources/post-object/
// https://codex.wordpress.org/Class_Reference/WP_Post#Accessing_the_WP_Post_Object
$post_objects = get_sub_field('team');
echo $post_objects->ID; // Display the post's ID
echo apply_filters( 'the_content', $post_objects->post_title ); // Do this instead
endwhile;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment