Support » Plugin: Custom Post Types and Custom Fields creator - WCK » Warning: Invalid argument supplied for foreach()

  • Hi,

    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 ?

Viewing 1 replies (of 1 total)
  • 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] => ) ) Array ( [0] => Array ( [youtube_url] => ) [1] => Array ( [youtube_url] => ) )

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

Viewing 1 replies (of 1 total)
  • The topic ‘Warning: Invalid argument supplied for foreach()’ is closed to new replies.