Hello, Im using this code to remove post from frontend in wordpress:
This code works good but if I use custom post type I get this error page from wordpress: Please try again.
Any help please?
Hello, Im using this code to remove post from frontend in wordpress:
This code works good but if I use custom post type I get this error page from wordpress: Please try again.
Any help please?
I'm having the same issue and I'm pretty sure it has to do with this URL not working for custom post types. Can anybody help?
echo "<a href='" . wp_nonce_url( get_bloginfo('url') . "/wp-admin/post.php?action=delete&post=" . $post->ID, 'delete-post_' . $post->ID) . "
I'm having the same issue. Just wanted to see if there had been any resolution on this yet.
Hey! After scouring the webernets, I found this solution:
Insert this into functions: http://pastebin.com/hede4ayF
Then call on it in page: <?php echo wp_delete_post_link(); ?>
Thanks to this post: http://wordpress.stackexchange.com/questions/28292/delete-post-link-to-delete-post-its-meta-and-attachments
This topic has been closed to new replies.