Title: Adding Elements to Sidebar
Last modified: August 18, 2016

---

# Adding Elements to Sidebar

 *  [dbrhett](https://wordpress.org/support/users/dbrhett/)
 * (@dbrhett)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/adding-elements-to-sidebar/)
 * How could I add a list of recent entries to the sidebar.

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

 *  [prostoalex](https://wordpress.org/support/users/prostoalex/)
 * (@prostoalex)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/adding-elements-to-sidebar/#post-136716)
 * `<?php wp_get_archives('type=postbypost&limit=50'); ?>`
 * would show you the list of 50 latest entries.
 *  [naty](https://wordpress.org/support/users/naty/)
 * (@naty)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/adding-elements-to-sidebar/#post-136719)
 * Thanks for the tip, all i have to do is add that where I want them to show up,
   for example beneath catagories and place the with no div tags?
 *  [prostoalex](https://wordpress.org/support/users/prostoalex/)
 * (@prostoalex)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/adding-elements-to-sidebar/#post-136734)
 * Ah, no, the full block for the sidebar in WordPress 1.2.2 would look something
   like this
    ` <li id="archives"><?php _e('Archives:'); ?> <ul> <?php wp_get_archives('
   type=monthly&show_post_count=true'); ?> </ul> </li>
 * Depending on which template you’re using (I just modified the default one that
   ships with WordPress [for my blog](http://www.moskalyuk.com/blog)) your notation
   might be different to keep up with the template.
 *  [prostoalex](https://wordpress.org/support/users/prostoalex/)
 * (@prostoalex)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/adding-elements-to-sidebar/#post-136735)
 * Oops, change that third line to
    `<?php wp_get_archives('type=postbypost&limit
   =50'); ?>`

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

The topic ‘Adding Elements to Sidebar’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [prostoalex](https://wordpress.org/support/users/prostoalex/)
 * Last activity: [21 years, 4 months ago](https://wordpress.org/support/topic/adding-elements-to-sidebar/#post-136735)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
