Ready to get started?Download WordPress


WCK - Custom Fields and Custom Post Types Creator
Warning: Invalid argument supplied for foreach() (2 posts)

  1. jothikannan
    Posted 9 months ago #


    i have followed the steps in the document and i have created the custom metabox with custom fields for my custom post types, it is working well before we publish the post once we publish or update the post it cause the warning like

    Warning: Invalid argument supplied for foreach() in wp-content/plugins/wck-custom-fields-and-custom-post-types-creator/wordpress-creation-kit-api/wordpress-creation-kit.php on line 372

    and the added entries for the custom fields are not showing ?what is wrong with this plugin ?


  2. jothikannan
    Posted 9 months ago #

    Hi ,

    As said from your FAQ

    Am working with Events- Manager plaugin, it have event custom post type

    Basically CFC stores the entries as custom fields in a multidimensional array

    but in my custom post type while update or publish a post it store as like below,


    but while add an entry the ajax returns the array like

    Array ( [0] => Array ( [youtube_url] => http://demo.osiztechnologies.com ) ) Array ( [0] => Array ( [youtube_url] => http://demo.osiztechnologies.com ) [1] => Array ( [youtube_url] => http://demo.osiztechnologies.com ) )

    actually it is happening in my admin panel
    what is going on here, am loosing my confident , please help me


You must log in to post.

About this Plugin

About this Topic