I want to insert custom post type with it's custom fields values I have found this method to insert custom post type but with no custom fields

wp_insert_post( array $postarr, bool $wp_error = false, bool $fire_after_hooks = true )

But the problem is on how to insert custom field values (that exists)



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.