Title: User Post Delete Issue
Last modified: August 22, 2016

---

# User Post Delete Issue

 *  [adokas](https://wordpress.org/support/users/adokas/)
 * (@adokas)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/user-post-delete-issue/)
 * Greetings, I’m trying to allow users to delete their posts, and I’m trying to
   do that with the;
 *     ```
       $or_pid = get_the_ID();
       if(isset($_REQUEST['p_id']) && $_REQUEST['p_id']>0){
               wp_delete_post($_REQUEST['p_id']);
   
       }
       ```
   
 * and
 *     ```
       <div class="tbl_col"><a class="delt" href="<?php echo get_permalink($or_pid); ?>&p_id=<?php echo $post->ID; ?>">Delete</a></div>
               </div>
       ```
   
 * but it’s not working. You check the whole code from [http://pastebin.com/VWN21GNZ](http://pastebin.com/VWN21GNZ)
   
   I’d be grateful if you can help me.

The topic ‘User Post Delete Issue’ is closed to new replies.

## Tags

 * [how-to](https://wordpress.org/support/topic-tag/how-to/)
 * [PHP Issues](https://wordpress.org/support/topic-tag/php-issues/)
 * [post delete](https://wordpress.org/support/topic-tag/post-delete/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [adokas](https://wordpress.org/support/users/adokas/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/user-post-delete-issue/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
