You have never read the WP documentation?
Create any template and form and when submitting the form it could be
Example:
$args = array('post_type'=>'post', 'post_title'=>'your title', 'post_status'=>'publish', 'post_content'=>'post content');
wp_insert_post ($args);
This will allow any post page or custom post type to insert the post
Related Posts:
- How can I make it so the Add New Post page has Visibility set to Private by default?
- Publish Post After Click On A Link
- Action on post publish
- Redirect to another page using contact form 7? [closed]
- how to execute some code after a post is published in WordPress [duplicate]
- Function added to hook “new_to_publish” not executing – custom plugin
- trigger email when post is published by someone a user follows
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- How to write a new file when new post has been published in WordPress
- What snippet do I need to type to show my ACF field show up on my theme?
- Is there a way to make [Table Of Content] plugin while not using revision data?
- WordPress hide post from custom post-type on a single page
- Do something with thumbnail image on post publish
- How to Save settings of custom tab product page in admin side in a database?
- Is there a plugin or another way that can help me find out the underlying files of a page/post? [closed]
- What is the easiest way to create a custom field archive?
- How I can get custom field’s current value?
- UnWanted Custom field added in the wp page edit area
- With W3 Total Cache when I publish a post it does not appear in the homepage. Only if i purge all cache [closed]
- Woocommerce – How to populate custom select field with stored values on checkout page?
- Implement Autocomplete for a custom field on WordPress Plugin Frontend
- The problem with WordPress Importer
- Cron job not firing
- How to query the custom fields by language?
- Solutions to repost categories into multisite blogs?
- How to enable qTranslate languages tabs in custom plugin page
- How do I “get the next 10 posts after post_id == x”?
- Hiding posts – WP Hide Post not working
- submit posts by unregistered users in wordpress
- Calendar Solution: Handling upcoming Dates with Posts?
- get_post_type on post.php
- Is there an easy way to flag posts in the admin area?
- finding whether request is for post, and post id
- Any built-in function to associate a post to category through a plugin?
- How to hide some section in WordPress under Post
- Display post lists in 2nd paragraph
- Can’t delete Draft Post [closed]
- Assign / update custom field value for all posts (How can I assign only to posts without custom field value?)
- Matching Chapters to a Custom posts [closed]
- WordPress comments not appearing in blog posts, likely because of Redux template. Could I fix this with a plugin that adds a comment form as a block? [closed]
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- WordPress display breadcrumbs using Yoast plugin [closed]
- Outbound link autometic converted into linkdirect , and not opening
- Display by Category in Admin
- auto populate list of questions if user select a category xyz
- is there a way to link one of the field in ACF field group, to a field in a media attachment page? [closed]
- Preg Match All doesn’t Allow echo first character for WordPress Taxonomy Tags
- How to toggle between two custom fields in WordPress woocommerce ‘WC Product Field Group’ plugin?
- How to allow an editor to edit all WordPress blog posts but have the last say as administrator?
- Two problems on my WordPress installation [closed]
- How to create an input field, and base the output on spreadsheet data? [closed]
- posts comments goes to trash
- Contributive page where people logged in can write
- Excerpts on category page
- How to pull email and name from Flamingo plugin
- How do I hide posts across all loops based on the value of a custom field?
- Which widget to use for display category post with view more? [closed]
- External RSS feed to WordPress Portfolio
- Trying to fix form resubmition with PRG (Getting error: Cannot modify header information – headers already sent by)
- Custom User meta field display
- Display wordpress post’s in popup?
- Unable to add TAB character to post?
- Execute js files doesn’t seem to work
- how to add text to posts from tags
- WordPress metaboxes – textfield suggestion automatically populated
- Char limit on custom blog-post form? [closed]
- Unable to select image using custom image field type
- Add category selection to custom post type (plugin)
- Every new post/draft has a custom field variable “yst_is_cornerstone” showing
- Would Gutenberg be considered a PlugIn?
- pagination on data fetched using SQL query
- Custom Post Type Fields
- How to delete all trashed item in one-go
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- How do I enforce users to fill a determined custom field using WyPiekacz?
- How to get the first post and second post in a wordpress blog?
- Is it possible to send blog posts via email to subscribers?
- Custom setup of wordpress comments that are displayed
- Is there any plugin which can paste a common content to my every post?
- Recent posts per category loop?
- ‘Organize Series Plugin’ as muti author feature
- Import Instagram post to WordPress blog post
- Problem of encoding characters (apostrophes) in my posts publications
- How to backup single post in wordpress [closed]
- How to get all posts belongs to a user between a certain date
- How do I publish portfolio items with a future date?
- wordpress content .php file in an iframe’s src in a wordpress post
- Adding class to last list item? Not WP generated
- Making my plugin create a page?
- Is there a way to make the main page only display a brief description of the full article?
- How to change the post form from plugin?
- WordPress plugin Post Creation [closed]
- Don’t publish/update a post when a plugin finds errors in custom fields
- Allowing users to Sign-up > Login > Post articles that need approval
- How to Resize the Custom Post Images?
- Amazon.com intergration with WordPress?
- Sticky option for custom post types without using custom fields or plugins
- How can I automatically download all images from all imported posts, place them on my new host, and replace all the links
- posts from multiple post types in one slider
- How do we update a custom file upload field with the Advanced Custom Field plugin?