$post = get_page_by_path( 'the_slug', OBJECT, 'post_type' ) ;
$id = $post->ID;
Then you an update post using this ID.
Note: Untested, may contain syntax error.
Related Posts:
- wp_update_post() example… how to update the_content in a textarea?
- Why wp_update_post() does not update GUID?
- What are the limitations of wp_update_post()?
- I need to bulk update all wordpress posts on a scheduled time
- wp_update_post does not update post_name
- How to disable saving/changing update date for certain admin users?
- “Internal Server Error” with wp_update_post
- how to get last revision id created after wp_update_post
- why wp_update_post cant update when value is empty?
- update a post with wp_update_post
- Updating posts not working
- Update a post’s info when clicking on a javascript button
- What ‘function’ will ‘update’ a post?
- wp_update_post meta causing 500 error
- Updating post_parent by id (many times)
- wp_update_post making my post sticky
- Is it possible to “Update” pages via SQL?
- Update post meta is slow while saving post
- Update post (published) date when changing category
- recursively update content
- wp_update_post ignores if/else
- $wpdb->update query incrementing value on it’s own!
- Update button (sometimes) greyed-out
- Set a post to draft once depending on a post meta value (passed certain date)?
- wp_update_post behaves differently for different user role
- Fatal error: Call to undefined function wp_cache_get after update attempt
- How to avoid infinite loop in save_post callback
- Programatically change post author
- wordpress function to change post status [duplicate]
- Post/Page Publish/Update button not clickable once I make an edit
- Issue with wp_insert_post and post_content field error Could not update post in the database
- Which action hook can I use when a featured image has been selected
- How to batch update post content with custom post meta value
- Scheduling posts to update once per day with wp_cron
- Keeping post_date same as the pending post_date on privately publishing the post
- SQL query to update post_date (one post = one single date & time)
- How can I stop wp_update_post messing up HTML example code?
- Update post date on every new comment?
- What action hook updates post meta?
- bulk post_content update
- wp_update_post on specific custom post type
- Mass Update lines of code for all posts
- Unable to modify(update) posts – Page not found
- How to check if wp_update_post was successful
- Automatically insert php function into post $the_content
- How trigger to save post when updating post meta
- Problem with wp_update_post
- How do I batch create revisions of all posts?
- What’s the proper way to use a custom table? [closed]
- post_status => publish not working
- Adding action to save_post, post needs to be saved twice for function to work
- Change the post date from a meta box
- How Can I Set the Post Author of a Post I Just Created With PHP?
- How to show Published date and/or Modified date
- Display success message after wp_update_post
- wp_insert_post_data filter hook identify current action
- Update post title with category name after editing a category
- custom post scheduler for drafts
- List taxonomy terms for post as checkboxes
- Allow Post Author to be 0 on Update
- How to bulk edit image url in featured image and product description?
- How to get the Tags on Publish post hook?
- Set post_parent value for the images uploaded by Add Media button into post
- Post author for revision not being set on update/insert
- Clear cache on post of one type when something happens to post of other type
- wp_update_post is not updating category
- How to automatic update date and time when save custom post type
- Inline style HTML attribute is being stripped from all elements of a post
- Use /prefix/postname as a slug in post_name?
- Gravity forms and wp_update_post [closed]
- Custom Meta Box (SELECT2) Not Saving Taxonomy Terms
- Is there a before_save_post hook or something similar
- Can’t update WordPress Page if post_content is Empty
- Odd behaviour for the update button when displaying a WP_List_Table
- Update Custom Taxonomy Value for a post based on custom date field
- Custom wp_editor doesn’t update post_content
- How to keep a record of changes to a custom field?
- The work of WordPress Function update_post
- Trash Bin for Categories?
- remove_action(‘save_post’) in function that was triggered by save post not working
- Prevent other hooks from firing after wp_update_post() outside of editor
- Set post publish date by custom field
- Updating a custom post status after an expiry date rather than trashing it
- Run a function when a custom post is update?
- How can I trigger a javascript function after a post update on edit post screen in wordpress admin panel?
- Update around 200,000 posts
- How to update the children of a post?
- Cannot update page – with too many characters?
- update flamingo_inbound post type after insert
- wp_update_post to set post IDs to drafts not working
- Front Page post mirroring revisions to other pages, constantly updating itself
- how to update editor content from metabox
- set_post_format called after wp_update_post when using bulk edit?
- Auto draft posts when scheduled date is reached
- Change custom post status to draft before today
- Setting a featured image while creating the post
- How to create posts with a specific date in bulk
- Update Post with Modified Data
- How can I use wp_after_insert_post with $current_screen?
- Bulk post approval and publishing doesn’t work