I am running Private Suite 2.1 with the Scrawl theme and WP 4.5.2.
Private Suite does indeed make posts of a checked category automatically private.
However, its other function doesn’t work for me. Instead of the “Prefix for private post and page titles:” becoming a prefix, the text I enter in that box becomes the title of every private post.
<blank> causes no title to appear on any private post
“Private:” casues the “Private:” to be the title on every private post
Is there something else I should try?
]]>Hello. When I upgraded WordPress, I was then unable to see the media entries. The files are being uploaded and stored just fine, and I can use them, but when I go to Media, the screen is blank. When I deactivate the plugin, the media entries come back and all is well. Not sure what the trouble is but it’s a bit problematic for me as I need the private pages for development purposes. Thanks in advance for your assistance. ??
]]>Just wanted to update the issue with titles, as there is a fix which was published here in the blog but didn’t appear in the support forums.
https://stephanieleary.com/code/wordpress/private-suite/
It’s basically going into the private-suite.php file and finding
return $options[‘private_title_prefix’]; and adding . ‘%s’;
So the replace whole line with return $options[‘private_title_prefix’] . ‘%s’;
Thanks for this great plugin, be great it you were able to keep it up to date for future WP plugins? What would you need from us to do that.
]]>How can I see a list of categories of a custom post type (portfolio) that my theme has so I can have their visibility set to Private? Now it only displays the default posts categories.
Thanks
]]>Patch to fix current known problems
diff -ru private-suite/private-suite.php /home/scisci/www/wp-content/plugins/private-suite/private-suite.php
--- private-suite/private-suite.php 2011-12-13 01:07:29.000000000 -0600
+++ /home/scisci/www/wp-content/plugins/private-suite/private-suite.php 2013-07-17 08:50:47.000000000 -0500
@@ -3,7 +3,7 @@
Plugin Name: Private Suite
Plugin URI: https://sillybean.net/code/wordpress/private-suite/
Description: Allows admins to add private pages to <code>wp_list_pages()</code>, <code>wp_page_menu()</code>, and the Pages widget or use a separate <code>wp_list_private_pages()</code> tag; specify the prefix on private and password-protected titles; create private categories; and choose which user roles may read private pages and posts.
-Version: 2.0
+Version: 2.0+
Author: Stephanie Leary, patched by Jerrad Pierce & Jeff Cohan
Author URI: https://sillybean.net/
License: GPL2
@@ -64,16 +64,16 @@
/*------------------------ Set Prefixes ------------------------*/
add_filter('private_title_format', 'private_suite_custom_private_title');
-function private_suite_custom_private_title() {
+function private_suite_custom_private_title($title) {
$options = private_suite_get_options();
- return $options['private_title_prefix'];
+ return $options['private_title_prefix'] . '%s';
}
add_filter('protected_title_format', 'private_suite_custom_protected_title');
-function private_suite_custom_protected_title() {
+function private_suite_custom_protected_title($title) {
$options = private_suite_get_options();
- return $options['protected_title_prefix'];
+ return $options['protected_title_prefix'] . $title;
}
/*---------------------- Private Categories -----------------------*/
@@ -83,7 +83,9 @@
if ($parent_id = wp_is_post_revision($postid))
$postid = $parent_id;
$options = get_option('private_suite');
- if (in_category($options['categories'], $postid)) {
+ if( get_post_status($postid) != 'trash' &&
+ get_post_type($postid) != 'page' &&
+ in_category($options['categories'], $postid)) {
// unhook this function so it doesn't loop infinitely, update the post, then re-hook
remove_action('save_post', 'set_private_categories', 10, 1);
wp_update_post(array('ID' => $postid, 'post_status' => 'private'));
@@ -228,7 +230,7 @@
<p><label for="private_title_prefix"><?php _e( 'Prefix for private post and page titles:' , 'private-suite'); ?></label><br />
<input type="text" id="private_title_prefix" name="private_suite[private_title_prefix]" value="<?php esc_attr_e($options['private_title_prefix']); ?>" /></p>
<p><label for="protected_title_prefix"><?php _e( 'Prefix for password-protected post and page titles:' , 'private-suite'); ?></label><br />
- <input type="text" id="protected_title_prefix" name="private_suite[protected_title_prefix]" value="<?php esc_attr_e($options['private_title_prefix']); ?>" /></p>
+ <input type="text" id="protected_title_prefix" name="private_suite[protected_title_prefix]" value="<?php esc_attr_e($options['protected_title_prefix']); ?>" /></p>
<p><label for="private_suite_filter"><input type="checkbox" value="1" name="private_suite[private_suite_filter]" <?php checked($options['private_suite_filter']); ?> />
<?php _e('Try to add private pages to <code>wp_list_pages()</code>, <code>wp_page_menu()</code>, and the Pages widget.', 'private-suite'); ?></label><br />
]]>
This can be done with Role Scoper, although you have to use the right settings.
]]>Since I’ve installed Private Suite plugin, I cannot delete posts which are in categories set as private. I cannot make them public as well (for this second point maybe it’s the correct behaviour of the plugin).
Thanks for your reply.
Small thing. Line 231:
<input type="text"
id="protected_title_prefix"
name="private_suite[protected_title_prefix]"
value="<?php esc_attr_e($options['private_title_prefix']); ?>" />
The index for $options in the last line should be:
'protected_title_prefix'
The effect is that the prefix for Private posts shows up in both text boxes on the Private Suite Options page – even though options are saved correctly.
]]>After updating my site to 3.5, Private Suite is stripping the actual titles ( the_title() ) from Protected and Private posts.
This happens whether viewing the home page, a single page, or an archive. The titles are also stripped from the “Recent Posts” widget.
The phrases “Private:” and “Protected:” do appear, but not the actual titles.
I’m using a child theme of the most current “twentyeleven” theme, but the problem also appears in the Live Preview of twentyeleven and twentytwelve – without my child theme.
When I deactivated Private Suite, the titles returned to all the usual places.
Let me know what info I can provide to help you trouble-shoot this.
Jeff
]]>Since the last plugin update, all the titles of my articles vanished!
I only have the prefix set in the admin area ??
strips title from category and replaces with “Private:”. All private items become public.
]]>Since wordpress 3.3.1 and plugin version 2.0 the media library appears empty even though the count of uploaded media is correct and already attached media is being displayed fine. Had to deactivate the plugin to get back to the media.
]]>I tell the app let admins view, edit and yaya a post that I marked private. I still cannot see or edit the post. From what I was led to believe this plugin would allow me to do that so since it does not I say it’s broken.
]]>I have narrowed down this issue to being attributed to Private Suite plugin being active. When it is active and one tries to set a static page as home it switches and says “main page no parent”.
]]>On activating this plugin, the parent page selected in the quick edit page panel is incorrect, causing it to be relocated on update.
]]>Hi Stephanie,
Oddly enough this plugin was working fine the other day, but all of a sudden, now none of the categories appear. If I set a post or two to public however, then I can view the related category. I’ve tried calling the categories two different ways (via widget and adding the cat call to the theme), but no dice. I also made sure posts were assigned to categories. The only thing that’s been changed since this was working, that I’m aware of, is that Magic Quotes was disabled on my hosting account, plus I installed the Zingiri Shopping Cart. I’ve since deactivated the Zingiri plugin, but the problem still persists.
Any ideas?
By the way, your plugin rules. I just started using it and find it to be very handy. Thanks much.
]]>Hi Dear,
I want to send translation files of this plugin but I can not find your contact informations. Please help me for sending an e-mail.
Thanks
]]>Fatal error: Call to undefined function private_suite_set_roles() in public_html/wp-content/plugins/private-suite/private-suite.php on line 19
????
]]>I have some private pages set to “subscriber and above”, and one user who is “contributor” doesn’t see the pages. ??
]]>I added a widget with the following code but no pages are showing up. The “add private pages” checkbox on the settings for this plug-in didn’t work. I’m using a multisite install of WP. Other suggestions?
<?php wp_list_private_pages(); ?>
This really cool plugin “Private Suite” had a bug for me.
The included function for substituting the prefix for “Private: ” and “Protected: ” diden’t work, and simply inserted yet another text before the “Private: ” text – and did not substite it with my entered value.
Thus I have made a small change:
function private_suite_custom_private_title($s) {
$options = get_option('private_suite');
// $s = str_replace(__("Private:"), '', $s);
$s = '%s';
return stripslashes($options['private_title_prefix']).$s;
}
add_filter('protected_title_format', 'private_suite_custom_protected_title');
function private_suite_custom_protected_title($s) {
$options = get_option('private_suite');
// $s = str_replace(__("Protected: "), '', $s);
$s = '%s';
return stripslashes($options['protected_title_prefix']).$s;
}
Best Regards.
]]>