function custom_taxonomy_shortcode($atts) { ob_start(); $atts = shortcode_atts( array( 'taxonomy' => 'opciones_estandar', 'post_id' => get_the_ID() ), $atts ); $terms = get_the_terms($atts['post_id'], $atts['taxonomy']); echo '
' . get_field('texto_a_mostrar', $atts['taxonomy'] . '_' . $term->term_id) . '
'; } else { echo '' . $term->name . '
'; } echo '