let user toggle post visibility by category oder tag
Ok, I have a tricky problem here and could use some help.
I’d like to give the user the ability to toggle posts of a certain category as visible or not. That is, on the index page, on single post pages, in the archives, and in searches.
For example, there would be three checkboxes at the top of the page labeled business, politics, and sports.
By checking or unchecking the checkboxes the user chooses what content is displayed.
Business, politics, and sports would refer to categories or, if that makes it any easier, to tags.
The navigation links (previous / next page) change accordingly: If business gets unchecked, the navigation must not link to a post that has been filed under business. This is actually the most important feature to me as I only display one post at a time anyway.
The user’s choice must be maintained as he navigates on the site, i.e. clicks links etc.
I know that there are several plugins out there which give the admin the ability to toggle the visibility of posts of certain categories (like Category Visibility Plugin). But they don’t let the user do it.
Is there a way to hack the php code to do this? Any ideas?
I’m currently using WordPress 2.2 but I’ll upgrade to version 2.3 sooner or later.
- The topic ‘let user toggle post visibility by category oder tag’ is closed to new replies.