Home › Forums › Backend Issues (wp-admin) › Getting error in admin: Warning: Invalid argument supplied for foreach() › Reply To: Getting error in admin: Warning: Invalid argument supplied for foreach()
Just to be helpful, I believe the problem occurs when the slug for the repeater field and the slug for the tab are the same. The tab slug isn’t visible but it is created behind the scenes from the title you gave it when it is first created. Changing your repeater slug or deleting and recreating your tab with a different name does the trick.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.