• Could not insert post into the database

    It was actually funny when it happened to me. I just can’t seem to find the way to insert post in WordPress via coding. I looked into Google, here and there, support forums, you know all the desperations. Not knowing anything about it, I then went to see the log(debug.log) file of WordPress and found this: Well folks, the answer was right there, the post_type name should not exceed 20 chars in length 🙂