Title: Separate posts into sections by date
Last modified: August 19, 2016

---

# Separate posts into sections by date

 *  [think2wice](https://wordpress.org/support/users/think2wice/)
 * (@think2wice)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/separate-posts-into-sections-by-date/)
 * Please go to [http://worldstarhiphop.com](http://worldstarhiphop.com) or [http://videos.onsmash.com](http://videos.onsmash.com)
   as a reference.
 * You see how the videos are arranged with a “date header” for each day? I’m aware
   that neither of these sites use wordpress, but is this possible in WordPress?
   And if so, what are the correct codes I should place into my template?

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/separate-posts-into-sections-by-date/#post-1446303)
 * To see this in action, switch to the WordPress Default theme, then edit the wp-
   content/themes/default/sidebar.php file and change the code regarding wp_get_archives
   to this:
 *     ```
       <?php wp_get_archives('type=daily'); ?>
       ```
   
 * Note that the wp-content/themes/default/archive.php is what displays that title.
 *  Thread Starter [think2wice](https://wordpress.org/support/users/think2wice/)
 * (@think2wice)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/separate-posts-into-sections-by-date/#post-1446423)
 * Will I be able to use a WordPress loop to display the “posts” ? I would like 
   to be able to show the number of views, a thumbnail, the title and whatever else
   could be included in a standard WP loop. This will also be used on my site’s 
   home page. Can it be used that way?
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/separate-posts-into-sections-by-date/#post-1446483)
 * wp_get_archives doesn’t do that–you would have to use a query and loop to do 
   that.
 *  Thread Starter [think2wice](https://wordpress.org/support/users/think2wice/)
 * (@think2wice)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/separate-posts-into-sections-by-date/#post-1446484)
 * What is the proper query/loop to do what I want to do?
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/separate-posts-into-sections-by-date/#post-1446496)
 * Might look through some of these to get an idea.
    [http://wordpress.org/extend/themes/search.php?q=magazine](http://wordpress.org/extend/themes/search.php?q=magazine)
 * or something like:
    [http://wordpress.org/extend/plugins/yd-recent-posts-widget/](http://wordpress.org/extend/plugins/yd-recent-posts-widget/)

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

The topic ‘Separate posts into sections by date’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/separate-posts-into-sections-by-date/#post-1446496)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
