Support

Account

Home Forums General Issues differentiate between post types on acf/pre_save_post Reply To: differentiate between post types on acf/pre_save_post

  • Ok. Here is the debug output:

    array(
    	'acf_nonce' => '665cc6ffdb',
    	'post_id' => 'new',
    	'return' => 'http://localhost:8888/product/submit-product?updated=true',
    	'acf_settings' => '',
    	'post_title' => 'New Product',
    	'post_content' => 'New Product details',
    	'fields' => array(
    		'field_52031e65653cf' => '',
    		'field_518d9f7991091' => '091212',
    		'field_518d9fc591092' => 'product code',
    		'field_51f73964fdb53' => array(
    			'acfcloneindex' => array(
    				'field_51f739d9f6a6f' => '',
    			) ,
    		) ,
    		'field_518da07f91094' => '20131101',
    		'field_518da16d91095' => '',
    		'field_52004906dffcf' => '',
    		'field_52004987277d6' => '',
    		'field_52478ebfe8454' => '110',
    		'field_518da32f9109e' => '',
    		'field_51f729f36ecb8' => '',
    		'field_518da18491096' => '',
    		'field_51f7289e80bf1' => '',
    		'field_51fe885be483c' => '',
    		'field_518da25691098' => '',
    		'field_518da2af9109a' => '',
    		'field_518da2f89109c' => '',
    		'field_51f73aef05ebf' => '',
    		'field_51f895a192c59' => '',
    		'field_51f8968188c4f' => '',
    		'field_518da51759987' => '',
    		'field_51fee9fe9fcb5' => '',
    		'field_51feea629fcb6' => '',
    		'field_51feea779fcb7' => '',
    		'field_520f04f1c58d1' => '',
    	) ,
    	'post_type' => 'products',
    )

    Now I am wondering what’s going wrong. Because it seems the post_type is being set properly. Let me debug some more.

    Thanks.