I’ve updated my plugin to version .5
This new version adds lots of new features.
The biggest one is a management page for all private posts. This page is listed under the “Manage” admin menu and is caleld “PrivatePosts” this page allows you to view all the private posts and to mass update them to change them to Public posts.
I’ve also added a function called “show_private_posts()” which you can see in action on the left menu bar under “Recent Privates”. This function uses the WordPress options of “Posts Per Page” and “What to Show” to show the most recent private posts. If there are no private posts it will not print anyting (Not even the header).
Lastly, I’ve made some updates to the original function of this plugin, I’ve added a variable called the ‘$Private_Indicator’ which makes it easy to change what the main page indicator is. IE, you can change it to an img, etc.
You can find the new plugin here.
Happy Hacking! 😀
Nice plugin, Chris. I wanted this exact functionality and was glad when someone had already written it.
I only noticed one quirk: when you use an image as the PrivateIndicator, you have to use singlequotes in the
<img/>
tag due to WordPress trying to stick the entire post title (including private icon) into the title attribute for the post link. Single quotes avoids the double quote nesting, but still makes an ugly title attribute.Yeah it does, but that’s the best way to do it.
Thanks.
Thanks for this plugin.
The $PrivateIndicator doesn’t seem to get populated.
I had to change
` $PrivateIndicator = stripslashes(get_option(‘PrivateIndicator’));
`
to
` $PrivateIndicator = ‘ private’;
`
Without that, all I get when I hover over the title is: the title
How can I make it get the setting in Options?
I am using the version posted here: http://cjbonline.org/privatepost.txt
Thank you.
One of the lines in my comment got edited due to html tags:
Without that, all I get when I hover over the title is: the title
This looks very interesting, but when I activate the plugin, I get:
Warning: Cannot modify header information – headers already sent by (output started at /home/[username]/public_html/blog/wp-content/plugins/privatepost.php:206) in /home/[username]/public_html/blog/wp-admin/plugins.php on line 16
Am I the only one seeing this?
The plugin does seem to be working, partially. I get a “Manage Private Posts” page and an options page for configuration, but I don’t get the “Private” marker appended to titles.
Assuming I can get this working, what I’d really love to see would be the opposite of the Manage page – I’d like to be able to batch-mark hundreds of currently public posts as private. Any chance of seeing something like that in the near future?