• Resolved meneldil

    (@meneldil)


    Hi everyone,

    I will develop a blog in WordPress with an post contribution system (contributor) grouping several pole.
    These contributors must be attached to a pole (they will write posts related to their pole). I would like to add editor for each pole so that they can manage the posts of the contributors of its pole only.

    The idea would be to be able to categorize users (Pole A, Pole B, Pole C, …).
    Is it possible to do this (with code or a plugin)? I would like to avoid using a multisite.

    Of course, there will be admin who will have control over all post.

    Here is the principle schematized:

    Thanks in advance.

    • This topic was modified 8 years, 10 months ago by meneldil.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Just about anything is possible. The best approach depends on the specific needs of your application. The obvious approach is to manage user capabilities, but grouping capabilities like this for a particular post type would be difficult. If the number of poles is limited, a different post type for each pole, each with its own capabilities, could be used. Adding post types does not scale well, doing so with dozens of poles would not work well.

    The groups could be managed by user meta that relates to particular taxonomy terms. When a user with meta “Pole-A” creates a post, the “Pole” taxonomy term “Pole-A” could be automatically assigned to the post. All queries and post operations would also be limited to posts with the same term.

    Unless additional measures are taken, users will be able to view posts from different poles. They cannot edit or delete other pole’s posts, but they will be able to view them. This is the nature of posts, that anyone can view them. Templates can be setup to only show posts for the same pole, but clever users could still access other posts by constructing the right request. Securely limiting viewing to a subset of posts will take some effort, but it’s possible.

    Thread Starter meneldil

    (@meneldil)

    Hello @bcworkz,

    The idea of “custom post type” is interesting. 🙂
    I have to check if the number of pole will be well delimited.

    Thanks a lot for your help!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Categorized and linked WordPress users’ is closed to new replies.