Medium / medium-wordpress-plugin

The official WordPress plugin for cross-posting to Medium.
https://medium.com
Apache License 2.0
211 stars 40 forks source link

if a post is deleted on Medium side, there is not a simple way to cross post the Medium story again #93

Open huckphin opened 8 years ago

huckphin commented 8 years ago

If a WordPress post is cross-posted to Medium, the record of it completing is saved in the postmeta WordPress table. If a migration needs to be completely reset, the only option right now is to delete the postmeta records manually from the database, matching those with a meta_key = "medium_post".

Manually editing database records is prone to errors and dangerous. It is not recommended, and should not be the way to reset the system. Having a way for users (read: not system administrators) to remove the postmeta records safely would be ideal.

r4hulp commented 8 years ago

I am also facing this issue. There has to be an option to refresh publication status. I wanted to re-crosspost my article from WP to medium as it was god deleted accidently

tizzle commented 8 years ago

Bump, i would love to see this feature. This happened to me after five minutes into testing the plugin.

odedniv commented 7 years ago

Same as @tizzle

odedniv commented 7 years ago

Found a hack, thinking most people who get here are developers...

  1. Get the post's ID by editing it in WordPress (/wp-admin/post.php?post=11&action=edit => 11).
  2. Login to your MySQL server (you can find the server information in wp-config.php).
  3. Run this SQL snippet.
# Verify you get a row back.
SELECT * FROM wp_postmeta WHERE post_id = <POST ID> AND meta_key = 'medium_post';
# If it looks like you found the right row, delete it.
DELETE FROM wp_postmeta WHERE post_id = <POST ID> AND meta_key = 'medium_post';

Voilà!

jcklpe commented 6 years ago

Just encountered this issue. Also Medium isn't showing up in gutenberg anymore. this thing needs better support.

jcklpe commented 6 years ago

Okay so I tried the sql snippet and it seemed to work. And I got Medium extension to appear again within the Gutenberg editor. BUT I can't seem to do the cross post again. it doesn't give me the option, even though I ran the SQL snippet. I'll keep testing.

jcklpe commented 6 years ago

I just manually deleted the row found with the sql snippet and it's all good now. Thanks guys!