I want to know if it is possible how to create a wordpress

hello
I want to know if it is possible how to create a wordpress theme edit forehead as P2?
What are the codes to insert for front to edit the Post, but also any other custom post types?

thank you