• 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 ?

    http://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/

Viewing 1 replies (of 1 total)
  • Thread Starter jothikannan

    (@jothikannan)

    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,

    s:146:"a:2:{i:0;a:1:{s:11:"youtube_url";s:33:"http://demo.osiztechnologies.com/";}i:1;a:1:{s:11:"youtube_url";s:33:"http://demo.osiztechnologies.com/";}}";

    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

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