wpdb->insert not working

I got the same problem.

Solution 1:
Strip your data.. WordPress rejects the query if the length of value is greater than the field length defined on the database.

On your insert query, the value for post_type field exceeded the 20 character limit.

Solution 2:
Use the $wpdb->query method

Leave a Comment