I did spot one problem in your case clause for radio buttons: In your <label> tag, you use $val, but I think you meant $option['id'].
I don’t see how it could be related to the foreach error you’re getting, but it won’t hurt to fix it.
The odd thing is that the real error is coming from core code: wp-admin/includes/post.php, line 197. It looks like you’re passing in some post meta, but you aren’t passing in an array, like it wants. Does that help you narrow things down?
Related Posts:
- Troubleshooting a “You do not have sufficient permissions to access this page” error
- How to Control user registrations directly on sub-sites
- WPDB Multiple site’s posts and get featured images
- Error 101 after upgrading WordPress
- PHP Notices appear when browsing any page in admin, but only for child theme, using code from WP Codex
- Migrating Multisite – Database error, missing wp_blogs table
- How does WordPress determine which multisite the user is on from the URL?
- How to fix blocked cookies error that doesn’t let me log into wp-admin?
- How to solve this issue
- get_post_meta fails after switch_to_blog
- Update post meta using save_post hook in multisite
- Debugging unserialize errors [closed]
- Suspicious mesage appears instead of images
- Problem in logging in as admin
- How can I fix this code [duplicate]
- Getting file errors in a WordPress Multisite ADMIN
- Primary (root) blog of multisite installation forbidden (403)
- Error establishing a database connection after moving local wordpressmultisite from one directory to another
- Error establishing a database connection – Multi-site with subsite don’t exisit [duplicate]
- How to set up wp multisite?
- 4th Network Site Database Errors?
- WordPress MU: Cookie error when trying to login on network WP instance
- Weird Issue – WordPress Multisite – Cannot Access subdomain’s pages
- How to add Custom Blog Options to new blog setup form?
- How can I trust switch_to_blog()?
- Remove the blog slug from WordPress Multisite root node
- Why is WordPress Multisite redirecting to wp-signup.php and how to fix it?
- I want to develop locally with Multisite, then migrate each site to separate remote WP installs
- Post and Page Inheritance to subsites in a WordPress Network
- Roles other than Super admin accessing manage_network_themes
- Multisite in subfolder – How to make new sites to be in same level subfolders as the main site
- How to list all network sites on one page
- Overriding the default WP Multisite notification e-mail
- Is there any central control/access panel for several WordPress sites?
- How would I compare and remove hacks to core?
- Memory needed to host 200 wordpress sites?
- Changing subdir multisite install to subdir core directory structure
- Multisite Conditional (if blog_id?) in a page template?
- WPMU vs WordPress MultiSite is there a difference anymore?
- Multisite database upgrade SSL error
- Odd Script File Trying to be Loaded
- share login/logout sessions across two installs?
- Can I install a theme on only one site of a multi-site network install?
- Creating a Dev box from an existing production machine?
- Force Network Admin Dashboard to 1 column on wordpress multisite
- Basically the opposite MultiSite URL question that most people ask
- Multisite wp-admin redirect loop
- setup Multi Multi-site with one installation?
- Rewrite rules in multisite
- Emailing only the users of a MultiSites Sub-Sites
- wp_logout_url isn’t forwarding to correct link
- Multiple blogs, different domain names, one install to rule them all
- Multiple sites (separate domains) running from one WordPress site
- Can simple Admin save options in a Multisite?
- Is there a hook or a function for multisite blog deactivate or delete?
- How does WordPress tell which post is from which site in a multisite setup?
- How do I use different domain for subdomains in WP Multisite?
- How to remove nodes site wide from the toolbar on multisite install
- Limit multisite/network site names to a property of the user
- How to set Active plugins as the default screen?
- Multisite network admin – URL / redirect error
- WPMU – new users are automatically subscribed to the main blog – how to prevent that?
- WordPress MU and nested sites addresses?
- Global searchin multisite but only with one subsite
- Removing “Sub-menus” from My Sites Drop-down in Admin Bar
- create_users capabilities on a role on multisite
- Multi-site vs seperate installs for just 3 blogs?
- Installing WP twice in same Directory?
- How deactivate the http-api
- Hosting a seperate wordpress project on localhost
- White Screen of Death – wp-admin
- How to query WP Multisite primary site link
- WordPress multisite in subdirectory, not root, and remove base folder from url
- No My Sites link after installing Multisite
- Speed up MU WordPress on Apache VPS?
- Buddypress on Multisite – Member List
- Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
- How do I use different URLs in a single WordPress installation?
- Get Current User Id Inside a Loop Returns 0 For a Shortcode
- Removing a wordpress multisite installation and preserving the database before migrate to nginx
- WordPress 5 WP REST routes – No errors
- How to change user starting role in WordPress MultiSite?
- Add additional non-rewrite .htaccess directives on multisites via mod_rewrite_rules filter
- get_post_type_object() does not work with switch_to_blog()
- Pushing stored procedure to a multisite database in WordPress
- Child Theme activates, but nothing from parent theme displays (MAMP, Multisite)
- How do you disable account activation in WPMU and then log the user in right away?
- Error uploading files bigger than 58 MB
- How to change the parent Domain Name in Multisites Project?
- Multisite registration problem [closed]
- Some PDF files get Forbidden Access and other open normally on the same directory subsites
- Copying media from multisite subsites to main website
- Link structure, WordPress IIS
- WordPress MultiSite Theme
- Multisite, Subdomain, shared NFS directory Linux HELP
- Create Custom Multisite User Role to Reduce Capabilities
- Importing XML didn’t finish, site is now inaccessible
- How to create multisite roles with predefined themes
- Can I safely remove banned names from WordPress?
- Multisite install w/ Sub domains on a subdomain