function new_get_separeted_by_commas_list($array, $property = 'name') { $new_items = new_get_array_of_properties($array, $property); $comma_list = implode(', ', $new_items); return $comma_list; }
echo et_get_option('divi_integration_single_top'); } ?> <article id="post-<?php the_ID(); ?> " <?php post_class('et_pb_post'); ?> > <?php $debug = false; $songs = new_get_children_songs(get_post()); $genres = get_the_terms(get_the_ID(), 'Style'); $genres_names = new_get_array_of_properties($genres, 'name'); $members = get_the_terms(get_the_ID(), 'Member'); $past_members = get_the_terms(get_the_ID(), 'Past Member'); $tags = get_the_terms(get_the_ID(), 'post_tag'); $args = array('posts_per_page' => 3, 'post_type' => 'new_band', 'tax_query' => array(array('taxonomy' => 'Style', 'field' => 'name', 'terms' => $genres_names, 'operator' => 'IN'))); $related_bands_query = new WP_Query($args); $related_bands = $related_bands_query->posts; $origin = get_post_meta(get_the_ID(), 'new_band_origin', true); $active = get_post_meta(get_the_ID(), 'new_band_active', true); $website = get_post_meta(get_the_ID(), 'new_band_website', true); // $i = 0; // $lesson = array(); // foreach ($songs as $song) { // $lessons[$i] = new_get_children_lessons($song); // $i++; // }