I want to add frontend post to custom post types. Till now I have figured out how to do it but only to the regular post type(not custom post). I am using this code. (Couldn’t paste it here hence please find it at Pastebin)
Need to know what code can be added to make the code applicable to custom post type(such as “books” or “places”)