2016-04-15 57 views
0

我有一個嵌套的簡碼像下面WP嵌套簡碼渲染問題

[boc] [boc_section title='Bieren Alcoholvrij' category='9'] [boc_section title='fusten' category='11'] [/boc]

當我試圖讓boc_section ARGS我沒有正確地得到。其被HTML編碼

'category' => string '’9′' (length=15) 'include' => string '' (length=0) 'title' => string '’Bieren' (length=13)

我怎麼能得到確切的價值?

回答

1

你需要說wordpress不能紋理短代碼的內容。 no_texturize_shortcodes獲取不需要紋理化的短代碼列表。

add_filter('no_texturize_shortcodes', 'ignore_boc'); 

function ignore_boc($list) { 
    $list[] = 'boc'; 
    return $list; 
} 
+0

仍然無法正常工作.. –