Yes @janoChen, you can use wp_insert_post,
take a look at this answers:
WP insert post PHP function and Custom Fields
Front-End Post Submission
Related Posts:
- How do you add Read more … link to posts?
- Get current menu_order
- Set Default Listing “View” in Admin
- How to add category to: ‘wp-admin/post-new.php’?
- Setting Custom Sort Order of Posts within a Category
- Display post number not post ID number
- has_archive=false on the default post type
- How do I detach images from posts?
- Exclude drafts in all() view of edit.php
- How to publish a post with empty title and empty content?
- Change the Slug of Post Type post to baseurl/post/%postname%
- Change slug with custom field
- How do I use element instead of tags in WordPress post content having webP support?
- adding a custom css class to post
- Prevent duplicate posts in wp_insert_post using custom fields
- How can I allow editors to leave comments on posts that have not yet been published?
- How to after saving or publishing a post redirect back to the original page
- get_post_type_archive_link(‘post’) returns current category archive
- How to activate Markdown in a local installation of WordPress 4.3?
- setup_postdata doesn`t seem ot be working
- Check to see if specific loop has less than certain amount of posts
- Single post as homepage?
- Pagination on single post page?
- Bulk update post slugs through database
- How To Remove Certain category Posts From the Blog Page
- Sticky post appears twice
- Ajax load more button in Recent posts widget
- Get posts of ONE taxonomy term of custom post type
- WordPress Custom Fields (Checkboxes with multiple values)
- How can I pass the ID of a post to a page template by clicking a url?
- How Can I Query a Specific Page From a MultiPage paginated Post
- Too many connections to server
- Change user role when post approve
- Whitelist Author of Private Post
- Adding buttons to Add New Post and Add New Page
- How do I phpunit test a post output process?
- Stop users posting into category while still seeing contents of the category
- Can wordpress post and sidebar remain visible after scroll?
- How to switch wordpress post status between publish and schedule in MySQL?
- Editing the default page to show all posts, rather than most recent ones
- Post Loop Missing Most Recent Post
- How to make a bilingual front-end post using the plugin WP User Frontend and Polylang or qTranslate?
- How to get posts from a current post’s month?
- Gather posts into a cart/lightbox and share with another user
- How do I extract just the post ID of the first item in whatever WP_Query returns?
- How to display two random-post sections that are each under their own category
- How to Use index.php file for “Blog” Page And this is Not a Home Page
- Sort Custom Post Type by Category ID then Post Name
- Which file do I need to edit the All Posts page in the admin area?
- Show metabox value last post excerpt, title and link
- Tags on products vs tags on blog posts. An easy way to duplicate them
- How to remove fresh posts (latest news) on the main page? [closed]
- Change Post Title For Specific Category
- How to set post status to Delete?
- get_previous_post() while accounting for sticky posts
- Add multiple meta keys to a post at once
- How to create a playlist for audio associated with posts per category
- If post does not exist, do something
- Creating a related posts section in wordpress inside a default post
- adding new posts into wordpress DB automatically
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- Display Parent Category of a Post belonging only to Subcategory
- Show 10 latest posts only from users with contributors role
- Calling Permalinks With PHP
- any way to access variables from within post editor?
- How to create a clickable latest posts list?
- Get post slug and match with menu item slug to change css
- Tag for custom post type
- Can’t find webpage on All Pages or All Post menus
- how to put post customized in page
- How to display particular categorie’s post which associated to specific user?
- Display Specific Categories posts on the home page
- Post title spoiler how?
- how to print total number of posts filtered by category?
- How to display post excerpt beside post list inside Post of Dashboard
- Integrate video and iframe in a post type gallery
- Add a unique meta desciption
- Displaying a specific sub-category’s posts from wp_query
- Modify loop to include all post statuses not just ‘published’
- How to convert return type of ‘get_posts()’ same as ‘wp_get_recent_posts()’?
- Filter question list on substring of metavalue
- Embedding Facebook in blog post not working
- Comment Authors of Post On Front Page
- How to list all names and descriptions of a custom taxonomy
- Post List Widget with custom posts and editing the Read More Link
- WordPress Media URLs?
- Make a custom URL and link to custom Template
- How to get all post titles starting with numbers and symbols?
- How to inject a post within a loop
- How to display a certain template element only for posts published within certain time range?
- List direct children of page
- Unable to get posts with category on my page
- Multiple post back-to-back display only one gallery
- Auto selection of category based on subject line or TAG
- Wp_query WooCommerce products
- No matching template found when using single.php
- WP Rest API feature image breaking react component
- Sort Posts Alphabetically Based on Specific Category (Divi)
- Inserting Media on New Post But Hides Previous Uploads for Editor/Contributor
- I have a website issue I am trying to resolve