2012-01-16 43 views

回答

1

我認爲這是很容易

首先,創建將處理短代碼

function handle_shortcode($para){ 
    //get_options 
} 

secord功能,註冊簡碼

add_shortcode('getOption', 'handle_shortcode'); 

然後,在使用它發帖:

[getOption para="key"] 

更多細節請看這裏:http://codex.wordpress.org/Shortcode_API