Stephanie Leary

Writer and WordPress consultant

  • Books
    • Content Strategy for WordPress (2015)
    • WordPress for Web Developers (2013)
    • Beginning WordPress 3 (2010)
  • Blog
    • Fascism Watch (2016-17)
    • Content Modeling for WordPress series
    • WordPress Hidden Gems series
  • Work
    • Portfolio
    • Services
    • WordPress Plugins
    • WordPress Themes
    • Presentations and Interviews
    • on GitHub →
  • About
    • Press Kit
  • Contact
    • Mailing List

WordPress Hidden Gems: Private Status

September 13, 2010 Stephanie Leary 1 Comment

Did you know there’s a members-only content feature built right into WordPress? It’s a little buggy, which is probably why it’s not more well-known. If you change a post or page to privately published, only logged-in users who can see private posts and pages will be able to see it.

By default, editors and administrators are allowed to read private posts and pages. If you want other roles to be able to read private content, you’ll need to edit the roles’ capabilities. You can [link id=”2717″]do it by hand[/link], if you’re comfortable pasting code into your theme functions file, or you can use a plugin that lets you edit roles. This is Justin Tadlock’s Members plugin. Among other things, you can choose which roles can edit or read private posts and pages — or you can [link id=”2721″]create a whole new role[/link] for that purpose.

Those bugs I mentioned? First, private pages are never included in page lists or menus, even if you’re logged in and you have permission to read them. That includes the Parent dropdown on the Page Edit screen, which means you can’t create a hierarchy of private pages. (You might have noticed the same is true for drafts, too.) All of this is due to a single bug in an underlying function. Hopefully it’ll get fixed one of these days.

However, if you can live with (or work around) these bugs, the built-in privacy feature is a handy, no-plugin-required way to create a members-only area.

Find all the WordPress Hidden Gems in [link id=”2675″]Beginning WordPress 3[/link].

WordPress

Comments

  1. Judy Payne says

    October 4, 2017 at 6:50 am

    I have been looking everywhere to find out how to change a blog post from published (private) back to a draft. I have watched several YouTube tutorials and looked at wordpress support. All of these places say click the Visibility button and use the DROPDOWN and hit DRAFT. I do not get dropdown options. What am I doing wrong?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest WordPress Book

Content Strategy for WordPress

A short book for content strategists and managers on implementing a complete content strategy in WordPress: evaluation, analysis, content modeling, editing and workflows, and long-term planning and maintenance.

Read the sample chapter

Kindle Nook iBooks Kobo Smashwords

WordPress for Web Developers

WordPress for Web Developers (9781430258667)

This is a book for professional web designers and developers who already know HTML and CSS, and want to learn to build sites with WordPress. The book begins with a detailed tour of the administration screens and settings, then digs into server-side topics like performance and security. The second half of the book is devoted to development: learning to build WordPress themes and plugins.

This is the second, much-revised and updated edition of Beginning WordPress 3, with a more accurate title. Everything’s been updated for WordPress 3.6.

WordPress for Web Developers is out now. See what's inside...

The best WordPress features you’ve never noticed

  • WordPress Hidden Gems: Screen Options
  • WordPress Hidden Gems: Bulk Edit
  • WordPress Hidden Gems: Private Status
  • WordPress Hidden Gems: Dashboard Feed Readers
  • WordPress Hidden Gems: Options.php

Content Modeling for WordPress series

  • Content modeling for WordPress, part 1: analyze content
  • Content modeling for WordPress, part 2: functional and organizational requirements
  • Content modeling for WordPress, part 3: a sample content model

This is an excerpt from Content Strategy for WordPress.My latest books are Content Strategy for WordPress (2015) and WordPress for Web Developers (2013). Sign up to be notified when I have a new book for you.

Copyright © 2022 Stephanie Leary