Title: Non Users Delete Posts
Last modified: August 20, 2016

---

# Non Users Delete Posts

 *  [shamy1000](https://wordpress.org/support/users/shamy1000/)
 * (@shamy1000)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/non-users-delete-posts/)
 * How can I allow non users to delete posts?
 * I am currently using this code:
 *     ```
       <?php
         global $wp_query;
         $cat = get_the_category();
   
         if ($cat[0]->cat_ID == 86){
             $url = get_bloginfo('url');
             echo "<a>ID) . "'>Delete post</a>";
        }
       ?>
       ```
   
 * This adds a delete link if the current post is in a certain category. It works
   perfectly but It requires a user with edit privileges to be logged in. How can
   I change this to allow for regular, non registered users to delete posts?
 * Any help is appreciated.

The topic ‘Non Users Delete Posts’ is closed to new replies.

## Tags

 * [delete posts](https://wordpress.org/support/topic-tag/delete-posts/)
 * [front-end](https://wordpress.org/support/topic-tag/front-end/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [shamy1000](https://wordpress.org/support/users/shamy1000/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/non-users-delete-posts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
