Is there any way to create forms for a particular content type and submit it form the site itself. I have 2 content types created in my WordPress and I want to create a form to post to a particular content type. Also is it possible to create the form as a page in wordpress?
regards – dj
I have used the following method to achieve this:
I have used the shortcode function to create forms in the site. Here you can see the documentation for adding shortcodes. Submit page was also a ‘page’ with shortcode. So I have collected the values in the shortcode function and added the content to the wp_posts table using wp_insert_post function. You can see the documentation about wp_insert_post() here. I hope this help 🙂
regards dj