Created
October 8, 2014 11:50
-
-
Save kristianb21/be3d7967923741f337cc to your computer and use it in GitHub Desktop.
wp wp-types display many to many
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
$child_posts = types_child_posts('appearance'); | |
foreach ($child_posts as $child_post) { | |
$band_id = wpcf_pr_post_get_belongs($child_post->ID, 'band'); | |
$band = get_post($band_id); | |
echo $band->post_title; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment