Skip to content

Instantly share code, notes, and snippets.

@kristianb21
Created October 8, 2014 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kristianb21/be3d7967923741f337cc to your computer and use it in GitHub Desktop.
Save kristianb21/be3d7967923741f337cc to your computer and use it in GitHub Desktop.
wp wp-types display many to many
$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