Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

WordPress MS wp-admin/includes/post.php error with shortcode generator

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:

  1. Troubleshooting a “You do not have sufficient permissions to access this page” error
  2. How to Control user registrations directly on sub-sites
  3. WPDB Multiple site’s posts and get featured images
  4. Error 101 after upgrading WordPress
  5. PHP Notices appear when browsing any page in admin, but only for child theme, using code from WP Codex
  6. Migrating Multisite – Database error, missing wp_blogs table
  7. How does WordPress determine which multisite the user is on from the URL?
  8. How to fix blocked cookies error that doesn’t let me log into wp-admin?
  9. How to solve this issue
  10. get_post_meta fails after switch_to_blog
  11. Update post meta using save_post hook in multisite
  12. Debugging unserialize errors [closed]
  13. Suspicious mesage appears instead of images
  14. Problem in logging in as admin
  15. How can I fix this code [duplicate]
  16. Getting file errors in a WordPress Multisite ADMIN
  17. Primary (root) blog of multisite installation forbidden (403)
  18. Error establishing a database connection after moving local wordpressmultisite from one directory to another
  19. Error establishing a database connection – Multi-site with subsite don’t exisit [duplicate]
  20. How to set up wp multisite?
  21. 4th Network Site Database Errors?
  22. WordPress MU: Cookie error when trying to login on network WP instance
  23. Weird Issue – WordPress Multisite – Cannot Access subdomain’s pages
  24. How to add Custom Blog Options to new blog setup form?
  25. How can I trust switch_to_blog()?
  26. Remove the blog slug from WordPress Multisite root node
  27. Why is WordPress Multisite redirecting to wp-signup.php and how to fix it?
  28. I want to develop locally with Multisite, then migrate each site to separate remote WP installs
  29. Post and Page Inheritance to subsites in a WordPress Network
  30. Roles other than Super admin accessing manage_network_themes
  31. Multisite in subfolder – How to make new sites to be in same level subfolders as the main site
  32. How to list all network sites on one page
  33. Overriding the default WP Multisite notification e-mail
  34. Is there any central control/access panel for several WordPress sites?
  35. How would I compare and remove hacks to core?
  36. Memory needed to host 200 wordpress sites?
  37. Changing subdir multisite install to subdir core directory structure
  38. Multisite Conditional (if blog_id?) in a page template?
  39. WPMU vs WordPress MultiSite is there a difference anymore?
  40. Multisite database upgrade SSL error
  41. Odd Script File Trying to be Loaded
  42. share login/logout sessions across two installs?
  43. Can I install a theme on only one site of a multi-site network install?
  44. Creating a Dev box from an existing production machine?
  45. Force Network Admin Dashboard to 1 column on wordpress multisite
  46. Basically the opposite MultiSite URL question that most people ask
  47. Multisite wp-admin redirect loop
  48. setup Multi Multi-site with one installation?
  49. Rewrite rules in multisite
  50. Emailing only the users of a MultiSites Sub-Sites
  51. wp_logout_url isn’t forwarding to correct link
  52. Multiple blogs, different domain names, one install to rule them all
  53. Multiple sites (separate domains) running from one WordPress site
  54. Can simple Admin save options in a Multisite?
  55. Is there a hook or a function for multisite blog deactivate or delete?
  56. How does WordPress tell which post is from which site in a multisite setup?
  57. How do I use different domain for subdomains in WP Multisite?
  58. How to remove nodes site wide from the toolbar on multisite install
  59. Limit multisite/network site names to a property of the user
  60. How to set Active plugins as the default screen?
  61. Multisite network admin – URL / redirect error
  62. WPMU – new users are automatically subscribed to the main blog – how to prevent that?
  63. WordPress MU and nested sites addresses?
  64. Global searchin multisite but only with one subsite
  65. Removing “Sub-menus” from My Sites Drop-down in Admin Bar
  66. create_users capabilities on a role on multisite
  67. Multi-site vs seperate installs for just 3 blogs?
  68. Installing WP twice in same Directory?
  69. How deactivate the http-api
  70. Hosting a seperate wordpress project on localhost
  71. White Screen of Death – wp-admin
  72. How to query WP Multisite primary site link
  73. WordPress multisite in subdirectory, not root, and remove base folder from url
  74. No My Sites link after installing Multisite
  75. Speed up MU WordPress on Apache VPS?
  76. Buddypress on Multisite – Member List
  77. Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
  78. How do I use different URLs in a single WordPress installation?
  79. Get Current User Id Inside a Loop Returns 0 For a Shortcode
  80. Removing a wordpress multisite installation and preserving the database before migrate to nginx
  81. WordPress 5 WP REST routes – No errors
  82. How to change user starting role in WordPress MultiSite?
  83. Add additional non-rewrite .htaccess directives on multisites via mod_rewrite_rules filter
  84. get_post_type_object() does not work with switch_to_blog()
  85. Pushing stored procedure to a multisite database in WordPress
  86. Child Theme activates, but nothing from parent theme displays (MAMP, Multisite)
  87. How do you disable account activation in WPMU and then log the user in right away?
  88. Error uploading files bigger than 58 MB
  89. How to change the parent Domain Name in Multisites Project?
  90. Multisite registration problem [closed]
  91. Some PDF files get Forbidden Access and other open normally on the same directory subsites
  92. Copying media from multisite subsites to main website
  93. Link structure, WordPress IIS
  94. WordPress MultiSite Theme
  95. Multisite, Subdomain, shared NFS directory Linux HELP
  96. Create Custom Multisite User Role to Reduce Capabilities
  97. Importing XML didn’t finish, site is now inaccessible
  98. How to create multisite roles with predefined themes
  99. Can I safely remove banned names from WordPress?
  100. Multisite install w/ Sub domains on a subdomain
Categories multisite Tags errors, multisite, php, post-meta
get_post_meta of multiple posts?
Categories as selectable links on submission form

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress