How to get posts or custom posts by query in wordpress?

Yes, Simplest and easy way to get the post and our created custom post type by wp query.

Just copy and paste below code into your file where you want to show /display your posts or custom posts.

Thats’s it