1
這是我的代碼:如何訪問PHP視覺作曲家模板變量獲得類別
add_shortcode('vc_post_cat', 'vc_post_cat_render');
function vc_post_cat_render() {
$postId = '{{ post_data:ID }}';
$cat = get_the_category($postId);
}
但在帖子ID不工作的功能。