Answers.Body: <p>According to Brandon, in live preview, you can no longer use <strong>entry.id</strong>, you have to use <strong>entry.sourceId</strong> to get the current draft.</p>
  
  <p><a href="https://github.com/craftcms/cms/issues/5087#issuecomment-541243645" rel="nofollow noreferrer">https://github.com/craftcms/cms/issues/5087#issuecomment-541243645</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-18T23:47:46.920Z
Answers.LastActivityDate: 2019-10-18T23:47:46.920Z
Answers.UserDisplayName: 4midori
Body: <p>I use the same templates for live preview as for the front end. Until a recent change in Craft 3, they worked fine for live preview, then they stopped showing most fields.</p>
  
  <p>I use a lot of includes to build pages, for example, I send the id of an entry to a separate template to display a Matrix field. I just pass <strong>entry.id</strong>.</p>
  
Tags: <craft3><live-preview><preview>
Title: Live Preview not showing content, Craft 3
ThreadText: # Live Preview not showing content, Craft 3
  
  (Asked by: username_0 on 2019-10-18)
  
  I use the same templates for live preview as for the front end. Until a recent change in Craft 3, they worked fine for live preview, then they stopped showing most fields.
  
  I use a lot of includes to build pages, for example, I send the id of an entry to a separate template to display a Matrix field. I just pass **entry.id**.
  
  **Tags:** craft3, live-preview, preview
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-10-18. Score: 1
  
  According to Brandon, in live preview, you can no longer use **entry.id**, you have to use **entry.sourceId** to get the current draft.
  
  <https://github.com/craftcms/cms/issues/5087#issuecomment-541243645>
  
  
  ---
  
  