admin管理员组文章数量:1122846
I have a parent CPT (Form) and a child CPT (Registration).
Form A currently has around 3,000 child registration posts. Am showing them on a custom admin table, 20 posts per page. The table columns show various meta values (say reg_name, reg_email).
Am encountering the following error: Around every 1-2 hours, for around 10-15 minutes, all the meta values are empty. Then they show well again, only for the issue to reappear later.
During this downtime, when testing retrieving registration post meta values, they return empty. After the downtime, they work well.
get_post_meta( $reg_post->ID, 'reg_name', true ); // Returns: ""
$reg_post->reg_name; // Returns: ""
get_post_meta( $reg_post->ID ) // Returns: []
Looked in the database and the meta values are always there, including in the downtime.
There is a Form B which has around 100 registration posts. The issue does not happen there, even when Form A is in downtime.
What could be causing this issue?
本文标签: custom post typesCPT meta values intermittently return empty
版权声明:本文标题:custom post types - CPT meta values intermittently return empty 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736301964a1931362.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论