[英]Nested shortcodes not working (2nd level nesting)
[row]
[column size="eight"]
[row]<h5>HELLO<strong>WORLD</strong></h5>[/row]
[row]<h5>CATEGORIES: <strong>WEB / CREATIONS / INTERACTIVE DESIGN</strong></h5>[/row]
[/column]
[column size="four"]Insert your content here[/column]
[/row]
這是即時通訊代碼正在使用。 但是由於某些原因,[row] ... [/ row]短代碼似乎不起作用。 這是簡碼功能:
function su_column_shortcode( $atts, $content = null ) {
extract( shortcode_atts( array(
'size' => 'six'
), $atts ) );
return '<div class="' . $size . ' columns">' . su_do_shortcode( $content, 'c' ) . '</div>';
}
function su_row_shortcode($atta = null, $content = null ) {
return '<div class="row">'.su_do_shortcode( $content, 'r').'</div>';
}
您所描述的不是問題,而是事實。
Wordpress簡碼不能嵌套。 如果您需要嵌套,你需要做你自己“築巢”,應用在“內”部分的所有的簡簡碼你 自己內部。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.