Pondering Privatization
This entry was posted on Monday, September 12th, 2005 at 10:47 am and was filed away under Wordpress 1.5 .Due to some recent changes in my life, I’ve made some changes to the blog. As above, so below, yeah? :) A lot of stuff has been blanket ‘privatized’. Some of it will return to public, some of it will go to varying levels of private.
As a result of my need to make blanket changes to the post levels of posts in certain categories, I created a short script that will update all of the posts in a category to make them private as well as updating them with a particular post level (for the post_levels plugin). I am not posting it for download - however, if you would like to have it, drop me a line and I’ll email it over.
This script would be helpful to people moving to post_levels from a former plugin or from a completely public blog. The default functionality is to make each post in the category private, delete previous meta (custom field) data for that post and create a new meta (custom field) entry with the post_level. This functionality would need to be slightly modified for blogs that use custom fields for some other data on their posts - to only remove meta entries for former privacy plugins before creating new ones (as to not wipe out other custom field data). It could also theoretically easily be used to adjust other custom field data for an entire category and is fast enough to potentially do all posts in a blog at once.












September 12th, 2005 at 12:40 pm
I love it when you talk code-y.
September 13th, 2005 at 4:55 pm
ooh baby.. then you would love to hear about how I changed the default behavior and commented out a portion that could be optionally used to delete prior meta data.. mmm.. gawd, that’s hot.. *grin*
December 22nd, 2005 at 8:33 am
I’d love a copy of that script, if you have it, and if it won’t be too hard for me to run. Thanks!