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 can meta values from another site in a multisite be used in a custom query?
- Start with multi-site feature now or later?
- Multiple multisite instances connecting to the same database
- Adding new sites to Multisite won’t register in Dashboard
- Auto creation of multisite blog on user registration
- Multisite multidomain
- WordPress Multisite Question
- Problem uploading images
- How to change the parent Domain Name in Multisites Project?
- Multisite – 404 when accessing sub-sites
- Memory question on WordPress Multisite
- ‘Cheatin’ uh?’ Error When Attempting to Upload Images After 3.4 Update
- How to protect post attachments related to a custom post type, from non-logged in users, on 1 subsite of a multisite installation?
- Aggregate multisite RSS and restrict certain content
- How to get permalink using get_blog_post function in a multisite?
- How to recover deleted site in WordPress Multisite?
- Redirect Site Geologically
- Notice bar at frontpage for multisite
- Single install or multisite?
- How to configure Multisite Network with randomized hostnames?
- Entry page for a wordpress multisite
- WordPress Network admin options page: how to store options and where will they be stored?
- Syncing content in Multisite. Possible?
- Query to import data from one MultiSite table to another (pages/sub-pages)
- How to use a Wildcard SSL with WordPress Network?
- Migrating wordpress multisite and domain mapping plugin
- Is it possible to install BuddyPress with blogs installed on several servers? [closed]
- Unable to apply theme to WordPress Network Site install
- All wordpress network subfolder sites being redirected to main site
- WordPress Multisite – Can 2 domains share a database of users?
- Can you create a local wordpress network / multisite install on a mac with subdomains?
- Why can’t I login to my “network sites”?
- Get current Blog ID in Tinymce Plugin Dialog Window in WPMU
- Different use for WordPress Multisite
- How to convert multi-site to single site
- How can I automatically duplicate a site’s pages onto network site?
- Grandchild themes and optimal network architecture
- All subdomains redirecting to mainsite/wp-signup.php after multisite install
- WordPress Multisite domain mapping with different IPs
- migrate a MU sub blog to a single install
- Create a homepage like WordPress.com?
- Can you install / activate the multisite when the install is in a subfolder?
- WordPress Multisite Strange Redirect on Primary Site
- PHP Warning: Attempt to read property “term_id” on bool
- Howto disable comment moderation emails for admins, but not for authors
- In multisite environment which is the most Popular blog?
- What might cause “junk after document element” error?
- Share reusable blocks between network sites
- WordPress Multisite – can I somehow merge the tables?
- Switch MultiSite main site with another (multilingual sites) – with subfolder – no subdomain
- How to make a php script(app) accessible to all wordpress subdomains in a wordpress multisite configuration?
- WordPress Multisite’s in subdirectory not redirecting to dashboard settings
- Multisite with 220+ sites painfully slow
- Multisite – user email activation links broken
- Multisite registration problem [closed]
- How can I use WP_Site_Query to find a blog by blog name?
- Add menu items/actions for multisite users who are registered on the network but do not have a role or capability in any sites
- Multisite: How can I have the admin bar (toolbar) use the language of the user instead of the language of the sub-site being viewed?
- Assign / update custom field value for all posts (How can I assign only to posts without custom field value?)
- .htaccess rules for blocking bots with an extra condition
- Wrong Redirect/Rewrite Rules?
- wordpress media library new uploads don’t write to database
- WordPress multisite on IIS – can’t open subpages
- Four columns in the wp_users table
- WordPress Multisite dashboards redirect to homepage
- Multisite gives Error if i want to enter Dashboard or Site
- Multi-Site Subdomain: Show master site under subdomain if no sub site exists
- WordPress Folder Multisite – dev, staging, www versions
- Multisite – Images often getting uploaded to the wrong month directory
- WordPress with Tor Onion Service (dual .com & .onion domains for same website)
- wp_insert_site() is triggering database error in a unit test
- Use external database with local multisite
- Sort custom meta column by other meta value
- Multisite: How to get a list of installed languages
- “You must be logged in to comment” but I am already logged in
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- WordPress Multi-Site on Ubuntu 18.04 LAMP Keeps Re-Directing