Hi @batbatbat3
最快的方法是,你可以在某個佈景或外掛中的functions.php
,加上下面的程式。
add_shortcode('return_post_id', 'my_function_return_post_id');
function my_function_return_post_id() {
return get_the_ID();
}
然後你在文章中加上[return_post_id]即可。
比較好的方式是自己或找人寫個外掛。
Very helpful thanks a lot !