• Resolved marcus182

    (@marcus182)


    Hello there, great plugin guys!!

    I would like to create a custom field for the groups, is it possible? Is “Groups” a custom post type that I can use with the ACF plugin?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Marcus,

    Groups is not a custom post type, instead it is using its own db tables.

    Perhaps if you may provide some more details on what you’re trying to do, we might able to help you further with your request.

    Kind regards,

    George

    Thread Starter marcus182

    (@marcus182)

    Thanks for your reply man. Here is the thing:
    The groups have 6 columns in database, right? (id, parent_id, creator_id, datetime, name and description). What I need is to create a new one called “creative_calls”.

    Because in my website we have this “creative director call” service and we have some clients that need to create additional users for the same company. So the “Call” service will be applied to the company group and not to the users, got it? Instead of create this custom field for each user, we want to create this field to the group because it’s easier to manage.

    I already created this new column in database but don’t know how to update this data in the group edit screen without change the plugin’s core files.

    • This reply was modified 11 months, 4 weeks ago by marcus182.

    Yes, I see and since you have the column added in the database, you can use the groups filter hook to add fields in the admin page:

    and the hook to process your new data on success:

    Also the equivalent filter hook to edit these new fields

    and the hook to process the modified data on success:

    Plugin documentation reference can be found here:

    Kind regards,

    George

    Thread Starter marcus182

    (@marcus182)

    Very nice man, worked perfectly. Thank you!!

    Perfect!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Field for Group’ is closed to new replies.