Detecting Preview mode (2 posts)

  1. Chris
    Posted 3 years ago #

    Is there a way that a theme can detect whether a post is being displayed in Preview mode (i.e. from clicking the "Preview Changes" button on the Edit Post screen), rather than on the actual public site?

    The reason is, some of my pages have "additional notes" contained in a custom text field via the Advanced Custom Fields plugin. I also have a checkbox that hides the notes from public view until I'm ready to publish them. I'd like - if possible - to make the notes always visible on the preview screen whilst still hidden to the public.

  2. Michael
    Forum Moderator
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic