Title: Archive
Last modified: August 19, 2016

---

# Archive

 *  [booboobear](https://wordpress.org/support/users/booboobear/)
 * (@booboobear)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/archive-3-2/)
 * Everytime someone posts a comment it goes into the January 2008 archive (the 
   month and year I started with WordPress).
 * I’d like the posts to go in their respective Month/Year archive folder. Obviously
   if someone posts today I’d like it in the July 2008 archive.
 * Can someone shed light on this for me?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [booboobear](https://wordpress.org/support/users/booboobear/)
 * (@booboobear)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/archive-3-2/#post-802551)
 * Still looking for help on this. Anyone?
 *  840204
 * [17 years, 10 months ago](https://wordpress.org/support/topic/archive-3-2/#post-802608)
 * Hello, I’m using the plugin “Compact Archives” and I need to make a modification
   to filter the wordpress Archivem and that it only shows a certain category (ID4).
 * What do I need to modify in this mySQL script?
    *******************************************
   if ($below21) { $now = current_time(‘mysql’); $results = $wpdb->get_results(“
   SELECT DISTINCT YEAR(post_date) AS year, MONTH(post_date) AS month FROM ” . $
   wpdb->posts . ” WHERE post_date <‘” . $now . “‘ AND post_status=’publish’ AND
   post_password=” ORDER BY year DESC, month DESC”); } else { $results = $wpdb->
   get_results(“SELECT DISTINCT YEAR(post_date) AS year, MONTH(post_date) AS month
   FROM ” . $wpdb->posts . ” WHERE post_type=’post’ AND post_status=’publish’ AND
   post_password=” ORDER BY year DESC, month DESC”); }
 * ******************************
 * Thanks in advance!
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/archive-3-2/#post-802609)
 * Just don’t double post – duplicate posts get deleted quickly.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/archive-3-2/#post-802610)
 * aurielito,
 * Are you insane? You already posted this in ten different topics.** STOP** it!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Archive’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [17 years, 10 months ago](https://wordpress.org/support/topic/archive-3-2/#post-802610)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
