Created
January 30, 2016 14:39
-
-
Save mariokerkhof/265d08de99be324eacb1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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