How To Add Custom Post Type In WordPress Without Using Plugin?

Below I have shown the simple way to add custom post type in our WordPress site.

Just open your functions.php file. and at the end of your file copy and paste below code to add your own custom post type.

We are accepting blogs for Tech News Write For Us category.