Title: Preview doesn&#8217;t show current data
Last modified: February 20, 2018

---

# Preview doesn’t show current data

 *  [snoffel](https://wordpress.org/support/users/snoffel/)
 * (@snoffel)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/preview-doesnt-show-current-data/)
 * I can’t really figure out why, but there is a problem in the function:
    `get_preview_postmeta`
   line 127
 * I do use a custom theme with the function `get_post_meta()` in my single.php 
   to retrieve the saved values. When I look at the page in preview mode, i _sometimes_
   can’t see any post_meta data, sometimes i see outdated post_meta data, sometimes
   only the post thumbnail is missing (stored in post_meta with key _thumbnail_id).
 * Everything is alright if:
    - i publish the post
    - i deactivate the function get_preview_postmeta from your plugin
    - it even works if i use the preview-button in upper right corner, where the
      url has all these parameters: ?p=3398&preview_id=3443&preview_nonce=fb39e854cd&
      _thumbnail_id=3404&preview=true – all other preview buttons don’t have theses
      parameters and will fail
 * Does this help you to understand the bug?

The topic ‘Preview doesn’t show current data’ is closed to new replies.

 * ![](https://ps.w.org/custom-field-template/assets/icon-256x256.png?rev=1966286)
 * [Custom Field Template](https://wordpress.org/plugins/custom-field-template/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-field-template/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-field-template/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-field-template/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-field-template/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-field-template/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [snoffel](https://wordpress.org/support/users/snoffel/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/preview-doesnt-show-current-data/)
 * Status: not resolved