I’m assuming you would have an Edit page and an Add New page, so why not just switch out the wp_insert_post
function from the Add New page to wp_update_post
?
The first argument for wp_editor
is the content you want to appear, so just use the current post that’s being edited’s content.
Related Posts:
- Adding an image to a non existing post
- Front-End Post Submission
- How to upload post thumbnail while wp_insert_post?
- Publish pending article from front end with a button?
- strip only specific tags (like ), but keep other tags (like )
- Get names of authors who have edited a post
- Edit a post from frontend. post_tags get saved, but not separated
- Developing a secure front end posting form
- How can I edit a post from the frontend?
- Developing a secure front end post editing form
- Post from front-end only by logged in users, form posts as “posted by:
- upload featured image from front end using wordpress add media button
- Post & edit a post from front end along with upload, dropdown, and other inputs
- How can I control multiple editing of wordpress posts?
- Cannot Update A Post, 404 Error
- Frontend Post Excerpt field mapping
- Frontend Post Form Validation
- Redirection not working in this front end post submission form?
- How to change the color theme per post?
- How to make a bilingual front-end post using the plugin WP User Frontend and Polylang or qTranslate?
- Change Post Status From Front End
- 404 error on default post type and default taxonomy fronted page
- Lock post editing to one user at a time – wp_check_post_lock
- Front end post submission form with duplicate type fields
- Replace image name on upload to the new post name on front-end form
- Edit the post title from the frontend
- Can i have more than one form for front end posting in one template [closed]
- Get Users Post ID
- How to limit post (Exception pages) for current user in each role in front end?
- Include Recent Post in Category
- Create posts by any logged in users
- How to generate an HTML link automatically from URL in a users’ post
- how let users select categories for posts in frontend?
- Creating a frontend blog post form for logged in users only
- Allow reader to reorder posts for themselves (oldest first)
- Send the post id to a front end edit post form
- Post/Edit/Delete Post From Frontend… How?
- Send/Publish a Post front end
- How Can I Limit Users to Post Creation For My Frontend Theme?
- User driven content problems
- How to use wp_editor(); in functions.php then retrieve content in the template
- Create post from form with image
- Stop Authors from submitting spam post
- How edit footer copyright info? [closed]
- Getting the post_id in wp_ajax function
- Change the default number of posts to show on mobile version
- I am trying to create a simple frontend form for posting
- How can I pass $post object to ‘save_post’ add_action?
- 1 column admin screen options – move submitdiv to bottom
- Single Post Navigation Within Each Category
- Add confirmation popup on “Move to Trash”
- How to get the latest posting time of archived pages in WordPress?
- Insert posts in two tables
- get_next_post() not working
- custom wordpress post loop – hide iframe content
- Different template for posts of all subcategories of category
- Search for posts based on their url in the admin?
- Add custom field automatically (add_post_meta) with value based on number of words of article
- Mark menu item as current-menu-item for category
- How do I use WP_Query to get a range of posts with custom fields that have numbers with letters in them?
- How to give capability (publish contributors posts) to author role?
- Setup a custom dynamic post
- How to make a price range slider from get_post_meta?
- One menu for frontpage (one pager), and a different menu for posts
- pagination for single post by category
- How to create new post content templates for my users?
- Start post pagination at 0 instead of 1
- How to include my own css in post
- how to get random post id by using post type
- Block editors annoying warnings
- Add get_the_tags() to Single Posts section via functions.php
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- Posts Missing in Dashboard after update
- Auto update post title and slug when post status is changed
- Accessing Post ID Within Loop
- Retrieving posts by their date and category
- Update field in database for users
- wp-link-pages in header and footer of the post
- get last post’s link with SQL query
- Output Buffer Issue with Single Post View
- Post in bulk based on category template
- Delete Post but retain image of post [WP REST API]
- how to add tags to post in the Loop?
- Menu Items disappearing/being empty on save or post edit
- Display/Filter post using if else statement
- Search results for ACF data
- Redirect to custom post if custom archive page has just one result?
- Strange behaviour in WordPress admin
- How do I change the post title’s link on the posts page?
- Embed image in post from external url
- Possible to display X number of authors posts from another WordPress site?
- Theme Unit testing not importing on MAMP server – Fatal error: Maximum execution time of 60 seconds exceeded
- Use radio buttons & checkboxes for post categories
- List posts that are in the same category as the current post title
- Wanting to apply different featured images for each post
- How do I show the post title if an advanced custom field hasn’t been used?
- Can I get custom post items in select box (dropdown)
- Show Next/Previous without Link
- Hindi content automatically converting to unreadable language?
- I can’t edit my posts