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 can meta values from another site in a multisite be used in a custom query?
  25. Start with multi-site feature now or later?
  26. Multiple multisite instances connecting to the same database
  27. Adding new sites to Multisite won’t register in Dashboard
  28. Auto creation of multisite blog on user registration
  29. Multisite multidomain
  30. WordPress Multisite Question
  31. Problem uploading images
  32. How to change the parent Domain Name in Multisites Project?
  33. Multisite – 404 when accessing sub-sites
  34. Memory question on WordPress Multisite
  35. ‘Cheatin’ uh?’ Error When Attempting to Upload Images After 3.4 Update
  36. How to protect post attachments related to a custom post type, from non-logged in users, on 1 subsite of a multisite installation?
  37. Aggregate multisite RSS and restrict certain content
  38. How to get permalink using get_blog_post function in a multisite?
  39. How to recover deleted site in WordPress Multisite?
  40. Redirect Site Geologically
  41. Notice bar at frontpage for multisite
  42. Single install or multisite?
  43. How to configure Multisite Network with randomized hostnames?
  44. Entry page for a wordpress multisite
  45. WordPress Network admin options page: how to store options and where will they be stored?
  46. Syncing content in Multisite. Possible?
  47. Query to import data from one MultiSite table to another (pages/sub-pages)
  48. How to use a Wildcard SSL with WordPress Network?
  49. Migrating wordpress multisite and domain mapping plugin
  50. Is it possible to install BuddyPress with blogs installed on several servers? [closed]
  51. Unable to apply theme to WordPress Network Site install
  52. All wordpress network subfolder sites being redirected to main site
  53. WordPress Multisite – Can 2 domains share a database of users?
  54. Can you create a local wordpress network / multisite install on a mac with subdomains?
  55. Why can’t I login to my “network sites”?
  56. Get current Blog ID in Tinymce Plugin Dialog Window in WPMU
  57. Different use for WordPress Multisite
  58. How to convert multi-site to single site
  59. How can I automatically duplicate a site’s pages onto network site?
  60. Grandchild themes and optimal network architecture
  61. All subdomains redirecting to mainsite/wp-signup.php after multisite install
  62. WordPress Multisite domain mapping with different IPs
  63. migrate a MU sub blog to a single install
  64. Create a homepage like WordPress.com?
  65. Can you install / activate the multisite when the install is in a subfolder?
  66. WordPress Multisite Strange Redirect on Primary Site
  67. PHP Warning: Attempt to read property “term_id” on bool
  68. Howto disable comment moderation emails for admins, but not for authors
  69. In multisite environment which is the most Popular blog?
  70. What might cause “junk after document element” error?
  71. Share reusable blocks between network sites
  72. WordPress Multisite – can I somehow merge the tables?
  73. Switch MultiSite main site with another (multilingual sites) – with subfolder – no subdomain
  74. How to make a php script(app) accessible to all wordpress subdomains in a wordpress multisite configuration?
  75. WordPress Multisite’s in subdirectory not redirecting to dashboard settings
  76. Multisite with 220+ sites painfully slow
  77. Multisite – user email activation links broken
  78. Multisite registration problem [closed]
  79. How can I use WP_Site_Query to find a blog by blog name?
  80. Add menu items/actions for multisite users who are registered on the network but do not have a role or capability in any sites
  81. 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?
  82. Assign / update custom field value for all posts (How can I assign only to posts without custom field value?)
  83. .htaccess rules for blocking bots with an extra condition
  84. Wrong Redirect/Rewrite Rules?
  85. wordpress media library new uploads don’t write to database
  86. WordPress multisite on IIS – can’t open subpages
  87. Four columns in the wp_users table
  88. WordPress Multisite dashboards redirect to homepage
  89. Multisite gives Error if i want to enter Dashboard or Site
  90. Multi-Site Subdomain: Show master site under subdomain if no sub site exists
  91. WordPress Folder Multisite – dev, staging, www versions
  92. Multisite – Images often getting uploaded to the wrong month directory
  93. WordPress with Tor Onion Service (dual .com & .onion domains for same website)
  94. wp_insert_site() is triggering database error in a unit test
  95. Use external database with local multisite
  96. Sort custom meta column by other meta value
  97. Multisite: How to get a list of installed languages
  98. “You must be logged in to comment” but I am already logged in
  99. Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
  100. WordPress Multi-Site on Ubuntu 18.04 LAMP Keeps Re-Directing
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
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 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