WordPress.org

Ready to get started?Download WordPress

Forums

Force post category for certain users (4 posts)

  1. cpjolicoeur
    Member
    Posted 4 years ago #

    I'm wondering if there is a built-in way or if someone has written a plugin that will force posts from certain users to belong to a certain category.

    For instance, I want to force all posts created by users with a role of "author" or "contributor" to be long a certain category XYZ.

    I haven't found a way to do this with the built-in features of WP unless I am missing something and a quick google search of plugins didn't reveal anything either.

    has anyone done this before or know of a way to do it?

  2. s_ha_dum
    Member
    Posted 4 years ago #

    I know how to do it. At least, I could cook up something fairly quickly (I think) that would do it. Just use one of the post hooks-- probably edit post-- to apply your categories to posts published by particular authors. It would take a wee bit of coding, but not too much if you hard code everything. If you want shiny interfaces and options and such it could get more complicated.

  3. i'm sure that could be done with a plugin (it's a good idea actually), but there's no way to do it with the built-in features.

  4. cpjolicoeur
    Member
    Posted 4 years ago #

    ok, thanks guys.

    I know that I could do it via writing a new plugin, but I just wanted to put some feelers out and make sure someone hadnt already done it.

    Guess its time to write another plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic