【发布时间】:2017-03-18 05:53:33
【问题描述】:
我想创建具有多个属性的shortcode。
但我只能处理单个而不是多个属性。
我只能这样做:
add_shortcode('test','get_shortcode');
但我想像这样创建shortcode:
add_shortcode('test id=1 title=test','get_shortcode');
我想在我的页面中这样称呼这个shortcode。
do_shortcode('[test id="1" title="test"]');
【问题讨论】:
标签: php wordpress plugins shortcode