[insert_php]
$taxonomyName = “category”;
$terms = get_terms($taxonomyName,array(‘parent’ =>49));
echo’

‘;
$i=1;
foreach($terms as $term) {
echo’

‘;
$term1=$term;
echo ‘

‘;

$JAMterm = $term->slug;

global $wp_query;
$term = $wp_query->queried_object;

$args=array(
‘orderby’ => ‘rand’,
‘posts_per_page’ => 1,
‘post_type’ => ‘post’,
‘tax_query’ => array(
array(
‘taxonomy’ => ‘category’,
‘field’ => ‘slug’,
‘terms’ => $JAMterm
)
)
);

$new_query = null;
$new_query = new WP_Query($args);

while ($new_query->have_posts()) : $new_query->the_post();
echo ‘

‘;
echo ‘