[wordpress]返回短代码组合的短代码

[wordpress]返回短代码组合的短代码,wordpress,shortcode,Wordpress,Shortcode,我经常使用短代码组合生成一行三幅图像。我想通过创建一个嵌套组合的其他短代码来简化这个过程。这是我的密码: // [imgs img1='' img2='' img3='' height='150'] $output = '[row][col span="1/3"] [ux_banner bg="'.$url1.'" height="'.$height.'"][/ux_banner] [/col][col span="1/3"] [ux_banner bg="'.$url2.'" height

我经常使用短代码组合生成一行三幅图像。我想通过创建一个嵌套组合的其他短代码来简化这个过程。这是我的密码:

// [imgs img1='' img2='' img3='' height='150']

$output = '[row][col span="1/3"]
[ux_banner bg="'.$url1.'" height="'.$height.'"][/ux_banner]
[/col][col span="1/3"] 
[ux_banner bg="'.$url2.'" height="'.$height.'"][/ux_banner]
[/col][col span="1/3"] 
[ux_banner bg="'.$url3.'" height="'.$height.'"][/ux_banner]
[/col][/row]';
return do_shortcode($output) ;
所以。。。好。。。它不起作用。我对do_short_代码的嵌套可能性有点困惑。有没有办法修复我的短代码


谢谢大家!

好像你想从stackoverflow的使用中为你写代码?对不起?我的问题有没有违反规则?我不明白为什么。。。var_dump($output)和var_dump(do_shortcode($output))表示什么?var_dump($output)显示格式良好的字符串。但是var_dump(do_shortcode($output))只返回{string(1538)”,其他什么都不返回。管理员也变得不可访问(带有相同{string(1538)”}的白色屏幕)。