Hallo,
ich möchte gerne mehrere Shortcodes verschachteln.
Ich habe gelesen, dass man dazu do_shortcodes benutzt, verstehe aber leider nicht wie ich das anwenden muss.
Der Shortcode soll so verschachtelt werden:
Das ist der Code in meiner functions.php:
PHP
add_shortcode("smallboxA", "smallboxA");
function smallboxA( $atts, $content = null ) {
return '<div class="smallbox col1-box">'.$content.'</div>';
}
add_shortcode("boxtitle", "boxtitle");
function boxtitle( $atts, $content = null ) {
return '<div class="boxhead">'.$content.'</div>';
}
Wie schaffe ich es jetzt, dass auch der [boxtitle]-Shortcode ausgeführt wird?