Development

Show private posts in Wordpress

This plugin allows link of private posts to be shown in archive and calendar without any configuration.

Have difficulty finding out your own private posts within Wordpress? They are only shown in administrative interface, and only during page-by-page browsing? This plugin would help. It displays links to these private posts within calendar, as well as within per-month archive list in sidebar.

For any normal website surfers, they won’t see any private post at all. This plugin is only effective if you have account in Wordpress site, and you have logged in — even after that, you will just see your own private posts, not those from other authors on the same site. That also means others won’t see your stuff; this plugin is purely for your convenience.

Installation

Note that this installation procedure is somewhat Unix centric right now. For Windows users, please download unxutils and use the patch utility to modify wp-includes/general-template.php. Note that it is a command line utility.

  1. Decompress zip file.
  2. Apply the patch to wordpress source code using following command:
    patch <wordpress_dir>/wp-includes/general-template.php -i calendar-sql-hook.patch

    <wordpress_dir> is the directory WordPress is installed.

  3. Copy wp-show-priv-post.php to wp-content/plugins/ folder.
  4. Activate plugin in WordPress admin page. There is no need for further configuration.

Download

The plugin and patch can be downloaded through this link.

Notes

This plugin is released under BSD license.

If patch is not applied, the plugin still works partially; monthly archive still shows links to months containing private post. But behaviour of calendar would not change at all.

Request of adding plugin hook is done in Wordpress Trac. But from the milestone, the change would not be done until mid 2009.

Version History

Version 1.0 (2008-06-20)

Initial Release.

3 Responses

  1. Jim Turner says:

    Thank you very much for this information! The archive listing now behaves exactly like I want it to.

    Thanks again,
    Jim T.

  2. Jessica says:

    Does this still work with the newest version of WP? Unix patching still needed?

    • Abel says:

      Yes, it should still work. Unix patch is still needed, the fix is left as unreviewed and not applied to WordPress source, please refer to the Trac link above for detail.

1 Incoming Link

  1. [...] 如果想在登录以后在归档和日历中看到自己的私人日志,可以安装wp-show-priv-post插件,其中包含补丁程序。 已阅次数:3次 本文分类:WordPress 本文标签:WordPress 本文评级: 1 个投票,平均级别:10/10。  Loading … Trackback: http://www.funbsd.net/wordpress/wordpress-tips-advance.html/trackback [...]

Leave a Reply

E-mail is not disclosed nor shared. Required fields are marked *