I am using WordPress and I have to show the dynamic fields on my custom post type after clicking on the button. So I used the below code