我已使用构建器本身提供的自定义选项自定义了我的帖子(Beaver Builder博客版式)。 我创建了2个字段作者和URL。 我已经使用
显示了作者function getSignedURL($file,$expiryMinutes = 30)
{
$privateKeyFileContent = '{
// service account generated key
}';
$storage = new Storageclient([
'keyFile' => json_decode($privateKeyFileContent,true)
]);
$bucket = $storage->bucket("as-portal");
$object = $bucket->object($file);
$url = $object->signedUrl(
# This URL is valid for 15 minutes
new \DateTime("$expiryMinutes min"),[
'version' => 'v4',]
);
}
我的代码
[acf field="author"]
我正在尝试传递url,但不能像输入短代码那样工作。
通过其他任何方式使其起作用。