Skip to:
Content
Pages
Categories
Search
Top
Bottom

Automatically create a Group upon creation of a custom post type post

  • Avatar of faeronsayn
    faeronsayn
    Participant

    @faeronsayn

    As the title suggests, is there anyway that user groups can be created when a post is created.

    Basically I’m doing something similar to the following.

    There is a custom post type, lets say called “Actors”. Now in actors I create a post for lets say Tom Cruise. When this happens, I want it so a user group is automatically created with the name of “Tom Cruise”. This will help because I can then do some customizations and make it so each actor has it’s own forums where users can discuss, as well as the users that join the group can be considered as “fans” of that specific actor.

    If this is possible through PHP or a plugin, or anything please let me know. Maybe the function that is used to create groups, and use an if statement to see if a custom post type post has been created, if it has then it creates a group using the post title of that post.

    Any help would be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @faeronsayn you’d either have to code that yourself or hire a developer to do so.

    Avatar of faeronsayn
    faeronsayn
    Participant

    @faeronsayn

    I wouldn’t mind coding it myself, I just want to know what functions I should use to create groups. Then I could just use some conditionals / loops to create posts for each custom post type post. @mercime

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

You must be logged in to reply to this topic.