高级自定义字段,访问字段标题
我正在使用带有高级自定义字段的 Woocommerce。
我已向产品添加了一个中继器字段,该字段将具有(文件)类型的子字段。我需要获取这些子文件类型字段的标题。
我尝试获取产品的 ID $current_product_id = get_post_meta( get_the_id());
并执行 var_dump($current_product_id);
,但我没有获得人类可读的标题字段,我只能获取计算机可读的标题和父(重复器)字段的标题。
我需要标题“规格表”和“IES 文件”,目前我只能获得“spec_sheets”和“ies_files”
如果有人可以提供任何解决方案/提示赞赏。 如果您需要更多信息,请告诉我。
谢谢!
I'm using Woocommerce with Advanced Custom Fields.
I've added a repeater field to products, which will have children fields of type (File). I need to get the titles of these children File type fields.
I tried getting the product's ID $current_product_id = get_post_meta( get_the_id());
and doing var_dump($current_product_id);
, but I am not getting the human readable title for the fields, I'm only able to get the computer readable title, and the parent (repeater) field's title.
Here's a screenshot of how the custom field looks like:
I need the titles "Spec Sheets" and "IES Files", currently I'm only able to get "spec_sheets" and "ies_files"
If anyone can give any solutions/hints that would be appreciated.
Please let me know if you need any more info.
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论