//imagen descatada
$thumbID = get_post_thumbnail_id( $post->ID );
$imgDestacada = wp_get_attachment_url( $thumbID );
$terms= get_the_terms( 10, 'cursos_cat');
//print_r($terms);
foreach ( $terms as $category ) {
$name_custom_cat=$category->name;
$descrip_custom_cat=$category->description;
$attachment_id = get_field('slide_categories',$category);
//print_r($attachment_id);
$size = "medium"; // (thumbnail, medium, large, full or custom size)
$image = wp_get_attachment_image_src( $attachment_id, $size );
}
?>
the_title();?>