1

So my client managed to find some (bug?), when custom post is published and he previews post all information what is posted with custom meta boxes is inaccessible. When I started debugging I found that in this case get post meta returns empty. Someone know why system acts this way.

And yes, when i look at post not prview all information shows fine. And before posting get_post_meta() works okay. Only in this case where post is pubished and preview is clicked.

closed as off-topic by fuxia Feb 6 '18 at 10:07

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • I can not reproduce your problem. It is possible that you are not saving the custom meta fields for drafts. I've seen that frequently. Can you post the code you are using to save the post meta values? – cybmeta Jul 6 '14 at 15:41
  • same issue here but more specifically post_meta isnt updated to new value in preview when post is published. – chris Oct 3 '15 at 16:21

Browse other questions tagged or ask your own question.