• Resolved gnelsoncreative

    (@gnelsoncreative)


    I am building out a custom post and field structure for Event Management.

    I have a post type of ‘organizers’. I would like to use the Post Object field to allow users to select from the pre-existing list of ‘organizers’ that are already created – or use the repeater field to add new ‘organizers’. Then upon saving the ‘Event’ post I want to create new ‘organizer’ posts based on the values from the repeater field so that when the user creates a new event these organizers will be available to select from the list.

    Can anyone point me in the right direction as to how I can accomplish this? It seems like maybe the “Allow and save custom values as new post” setting could do this, but I can’t find any documentation about it.

    Any help would be greatly appreciated!

Viewing 1 replies (of 1 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback! The “Allow & Save Custom value” setting of the “Post Object” field let the user create a New Post of the Post Type of your choice. The user simply has to type a custom Title that doesn’t exists in the said Post Type, to create it on-the-fly when saving the post.

    You also have a access to specific hooks in order to change the new post arguments and/or trigger a custom action on post creation. You’ll find codes examples in the Post Object field, when enabling the “Allow & Save Custom value” setting.

    In your case, if “Organizers” is a post type, then it should work as you expect.

    Hope it helps!

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Post Object Field: Add New’ is closed to new replies.