Simple Preview

August 03, 2018

Simple Preview Plugin

Let anonymous users preview a post before it is published!

Let anonymous users preview a post before it is published!

Have you ever been writing a post that needs to be reviewed by someone who does not have access to log in? This plugin generates a simple URL that can be given out for public preview.

Based on Public Post Preview 1.3 by Matt Martz and Jonathan Dingman. Unlike Public Post Preview, the Simple Preview can be accessed by more then one user. The 24hr time limit has also been removed.

Upgrading

  1. Click update from the WordPress plugin menu.

or

  1. Click ‘Download’ on this page.

  2. Deactivate the simple preview plugin through the Plugins menu in WordPress Admin.

  3. Upload the folder to your /wp-content/plugins directory, overwriting the previous version.

Installation

From wordpress admin screen

  1. Choose ‘Plugins > Add New’.

  2. Search for ‘simple preview’ and install!

From this page

  1. Click ‘Download’

  2. Upload the simple-preview folder to your /wp-content/plugins directory.

Remember to:

  1. Activate the plugin through the ‘Plugins’ menu in WordPress or by using the link provided by the plugin installer

Screenshots

  1. It's just that simple!

    It's just that simple!

FAQ

How is this different then Public Post Preview?

  1. Completely removed the use of “nonce” variable. Posts marked preview are now accessible by multiple anonymous users. There is no longer a 24hr time limit.

  2. Public_Post_Preview used the option variable as an array to store preview state – genius! However, it’s use seemed backwards with an empty item == preview true. This logic was reversed so: simple_array[,,true,,true] now means that p=1 and p=4 have previews. This also allows for the preview to be turned off by default.

  3. Removed extra variables for a cleaner URI: http://www.yourblog.com/?p=1502&preview=true

How do I use it?

  1. Unlike public post preview, simple preview is not turned on by default.

  2. To enable simple preview for a specific post, check ‘Allow Preview’ and save the post. A simple URL will be created.

  3. To disable, uncheck the box and save the post again

Changelog

0.1.9

  • Tested on 4.9.8
  • Fixed Bug: Link to preview pages is now ?page_id= instead od ?p=

0.1.8

  • Tested on 4.9+
  • Feature: Added support for Pages and Custom Post Types (thanks to @herrllama)
  • Fixed Bug: Updated constructor (thanks to @chadhayton)

0.1.7

  • Tested on 4.7+
  • Moved from seperate meta box to the publish area.
  • Cleaned up the code a bit.
  • Fixed bug: Regulare preview works again
  • Figed bug: Preview will remain active when a post is scheduled

0.1.6

  • Tested on 3.6+. Cleaned up the code a bit.

0.1.5

  • Initial release. Has been well tested.

0.1.4

  • This version (and previous versions) were just used in testing. They weren’t event submitted to https://wordpress.org/extend/plugins/

Details

  • Version: 0.1.9
  • Active installations: 400
  • WordPress Version: 2.7
  • Tested up to: 4.9.26

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars