Share a Draft Post or Page in WordPress Without Requiring Login

No admin access; no problem

Need to temporarily share a WordPress draft post or page with a colleague or client who doesn’t have access to your WordPress admin? Here are two lightweight plugins to help you do so.

Public Post Preview

The Public Post Preview plugin conveniently allows for the preview of posts, pages and any other public custom post types without logging in.

The plugin, developed by Matt Martz and Jonathan Dingman, has earned a respectable 30,000+ active installations.

To install the plugin through WordPress, you can follow the typical proceedure:

  1. Go to the ‘Add New’ plugins screen in your WordPress admin area
  2. Search for ‘Public Post Preview’
  3. Click ‘Install Now’ and then click to activate the plugin

Once the plugin is activated it will add an option to “Enable public preview” in the Publish meta-box as seen here:

Public Post Preview

The plugin generates an URL with an expiring nonce appended to its end. For example, “&_ppp=fda2aeb189” in the following:

http://yourdomain.com/?p=2816&preview=1&_ppp=fda2aeb189

The shared link “lives” for 48 hours from the moment of activation. After 48 hours the link will expire and you need to copy and share a new link which is automatically generated in the same location under the editor.

If a custom share duration is required for your site, there is an available filter that allows its extension.

add_filter( 'ppp_nonce_life', 'my_nonce_life' );
function my_nonce_life() {
    return 60 * 60 * 24 * 5; // 5 days
}

This duration can also be managed by installing the related plugin “Public Post Preview Configurator” by Björn Weinbrenner.

WP-DraftsForFriends

WP-DraftsForFriends is an alternative to the above, but only works with posts, not pages or custom post types.

After installation and activation, the plug adds a “Drafts for Friends” link to the Posts admin menu.

From this area you can select from available draft posts and set a timeframe for the available share in minutes, hours or days.

If you need to extend the duration, you can simply add time a previously set shared post as see here:

Questions?

Have a question about this, or other WordPress related issue, leave a comment below or feel free to contact me anytime.

Vance Bell

Vance Bell

Hi there, glad you made it! I'm Vance Bell, a freelance web designer/developer and frequent marketing consultant.

Monday to Saturday I help businesses and organizations grow attention and revenue. Sometimes on Sunday I take a break and binge watch Netflix.

Owner of Pixel Engine, a Philadelphia-based web design and online marketing studio.

If you'd like to hire me, I'd love to hear from you. If you just have a question, feel free to ask.

Post a Comment