Thanks guys, it works great.
Question: how would you about create multiple forms on the same page?
I need to build a page with multiple tabs, each one has a button to create a new post in a different post type.
tab 1: <button>Create new store</button>
tab 2: <button>Create new employee</button>
tab 3: <button>Create new team</button>
Since the post type is defined in the arguments in PHP I cannot figure out how to make this dynamic, example: you click on tab 1 the post type for the presaved post will be “Store”, you click on tab 2 then the button saves an “employee”… and so on.
Any help will be welcome,
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!