外掛說明
This plugin provides access to “Private Pages” and “Private Attachments” for everyone using their direct link and removes “Private” prefix from title of this pages.
安裝方式
- Upload plugin folder to the
/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Deactivate plugin any time to disable its effect.
常見問題集
-
A page of my weblog is set to Private but it is indexed by google. Why?
-
There are diffrent situations:
Maybe there is a link to the private page in another public page, in XML site map, another site, etc.
You may add “noindex” meta directive for this kind of pages if required.
使用者評論
2019 年 3 月 4 日
Great plugin! Thanks!
2017 年 3 月 20 日
Thanks for this plugin! It has saved me so much work. I can now ensure that certain posts are shareable via URL but do not show up in archive pages.
To be doubly sure that these private posts did not show up in search engine results, I used a custom field that inserts robots noindex meta to the head of the page.
function add_meta_noindex() {
global $post;
$noindex = get_post_meta($post->ID, 'noindex-post', true);
if ($noindex) {
echo "<meta name=\"robots\" content=\"noindex,nofollow,noarchive,nocache,nosnippet,noodp,noydir,noimageindex\" />\n";
}
}
add_action('wp_head', 'add_meta_noindex');
參與者及開發者
變更記錄
0.2.1
- fixed a bug with private attachments in Media Library
0.2
- support for private attachments added( needs test with diffrent themes and plugins )
0.1
- first release