WordPress.org

Ready to get started?Download WordPress

Forums

Limit user_level to category(ies) (3 posts)

  1. Daddio
    Member
    Posted 10 years ago #

    I'm looking to associate user_level to certain categories in WP. For example, a user_level of '0' would only get category '1- General' messages, user_level '1' would get categories '1' and '7', and any user_level '2' or above would get 'all' the categories. I've looked through and searched the forums, but haven't found anything that does this. Any ideas or pointers to the right posts would help. I'm running 1.0.2 at this point. Thanks!

  2. Daddio
    Member
    Posted 10 years ago #

    Okay, I looked further, and did find some posts that were similar in nature to mine (don't know how I didn't see them the first time). But while they were similar, they weren't the same. After reading those posts, I am thinking I need to split this into two questions:
    1. Is it possible, without too much customization, to get the user_level and user_login information prior to the wp_start() command? With that information, I think I could limit things the way I am trying to - the way I did in b2.
    2. Or, if that is too much modification, is it possible to remove the ability to post for user_levels other than, say, '9'?
    Actually, I think those are both things I would like to make happen. My blog is an "only me" post blog, with only comments permitted by others, and like in the original post, I have the "general" category for everyone, one additional category (two total) for the next level user, and then all categories for all other levels, all without the ability to post.
    Anyone have any ideas, or places to look? Thanks!

  3. coppit
    Member
    Posted 8 years ago #

    This does part of what you want:

    http://www.coppit.org/code/category-levels.php.txt

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.