Title: Archive Template Sidebar Problem
Last modified: August 21, 2016

---

# Archive Template Sidebar Problem

 *  Resolved [Davicii Dotcom](https://wordpress.org/support/users/davicii-dotcom/)
 * (@davicii-dotcom)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/archive-template-sidebar-problem/)
 * Hello 🙂
 * I’m using your theme “Hemingway” on my personal Blog [http://www.davicii.com](http://www.davicii.com/)
   and I’m having trouble with the sidebar on the Archive Template.
 * On every other Page and Post the archive is displayed correctly, expect for the
   archive page [http://www.davicii.com/archiv/](http://www.davicii.com/archiv/).
   On the archiv page it is displayed too far on the right, sticked to the right
   side or something. i have absolutely no idea what i did wrong, because i haven’t
   worked on the sidebar nor on the archive template.
 * can you please help me with this problem. so that the sidebar on the archive 
   template page is displayed correctly as on every other page or post.
 * thx in advance 🙂

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

 *  [ahoffman50](https://wordpress.org/support/users/ahoffman50/)
 * (@ahoffman50)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/archive-template-sidebar-problem/#post-4680262)
 * Interesting, looking at your site, it shows the sidebar inside the “wrapper section-
   inner” div on normal pages and outside of it on the archive page. I don’t use
   an archive page, so I have not seen if this is consistent with mine.
 *  Theme Author [Anders Norén](https://wordpress.org/support/users/anlino/)
 * (@anlino)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/archive-template-sidebar-problem/#post-4680289)
 * Hi Davicii,
 * I believe that I’ve fixed that in an update. Try updating Hemingway to the latest
   version, and that should fix the problem.
 *  Thread Starter [Davicii Dotcom](https://wordpress.org/support/users/davicii-dotcom/)
 * (@davicii-dotcom)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/archive-template-sidebar-problem/#post-4680295)
 * Hi Anders,
 * I’m sorry but I’m using the newest version of your theme. It may be caused by
   some changes that I did to the archive template php file.
 * Here’s the code that I’m using now that causes problemes, please tell me what
   I should change that it looks nice 🙂
 *     ```
       <?php
       /*
       Template Name: Archive template
       */
       ?>
   
       <?php get_header(); ?>
   
       <div class="wrapper section-inner">            
   
         <div class="content left">
   
           <div class="posts">
   
             <div class="post">
   
               <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
   
                 <?php if ( has_post_thumbnail() ) : ?>
   
                 <div class="featured-media">
   
                   <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>">
   
                     <?php the_post_thumbnail('post-image'); ?>
   
                     <?php if ( !empty(get_post(get_post_thumbnail_id())->post_excerpt) ) : ?>
   
                       <div class="media-caption-container">
   
                         <p class="media-caption"><?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?></p>
   
                       </div>
   
                     <?php endif; ?>
   
                   </a>
   
                 </div> <!-- /featured-media -->
   
               <?php endif; ?>
   
                 <div class="post-header">
   
                     <h2 class="post-title"><?php the_title(); ?></h2>
   
                   </div> <!-- /post-header -->
   
                 <div class="post-content">
   
                   <?php the_content(); ?>
   
                   <div class="archive-box">
   
                     <div class="archive-col">
   
                       <h3><?php _e('Last 30 Posts', 'hemingway') ?></h3>
   
                             <ul>
                               <?php $archive_30 = get_posts('numberposts=30');
                               foreach($archive_30 as $post) : ?>
                                   <li>
                                     <a href="<?php the_permalink(); ?>">
                                       <?php the_title();?>
                                       <span>(<?php the_time(get_option('date_format')); ?>)</span>
                                     </a>
                                   </li>
                               <?php endforeach; ?>
                             </ul>
   
                             <h3><?php _e('Archive nach Kategorien', 'hemingway') ?></h3>
   
                             <ul>
                                 <?php wp_list_categories( 'title_li=', 'hemingway' ); ?>
                             </ul>
   
                             <h3><?php _e('Archive nach Tags', 'hemingway') ?></h3>
   
                             <ul>
                                 <?php $tags = get_tags();
   
                                 if ($tags) {
                                     foreach ($tags as $tag) {
                                       echo '<li><a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s", 'hemingway' ), $tag->name ) . '" ' . '>' . $tag->name.'</a></li> ';
                                     }
                                 } ?>
                             </ul>
   
                           </div> <!-- /archive-col -->
   
                           <div class="archive-col">
   
                             <h3><?php _e('Autoren', 'hemingway') ?></h3>
   
                             <ul>
                               <?php wp_list_authors(); ?>
                             </ul>
   
                             <h3><?php _e('Archive nach Jahren', 'hemingway') ?></h3>
   
                             <ul>
                                 <?php wp_get_archives('type=yearly'); ?>
                             </ul>
   
                             <h3><?php _e('Archive nach Monaten', 'hemingway') ?></h3>
   
                             <ul>
                                 <?php wp_get_archives('type=monthly'); ?>
                             </ul>
   
                             <h3><?php _e('Archive nach Tagen', 'hemingway') ?></h3>
   
                             <ul>
                                 <?php wp_get_archives('type=daily'); ?>
                             </ul>
   
                           </div> <!-- /archive-col -->
   
                           <div class="clear"></div>
   
                         </div> <!-- /archive-box -->
   
                         <?php if ( current_user_can( 'manage_options' ) ) : ?>
   
                     <p><?php edit_post_link( __('Edit', 'hemingway') ); ?></p>
   
                   <?php endif; ?>
   
                 </div> <!-- /post-content -->
   
                 <div class="clear"></div>
   
                 <?php comments_template( '', true ); ?>
   
               <?php endwhile; else: ?>
   
                 <p><?php _e("Diese Anfrage ergab leider keine Treffer. Bitte versuche es noch einmal.", "hemingway"); ?></p>
   
               <?php endif; ?>
   
             </div> <!-- /post -->
   
           </div> <!-- /posts -->
   
         </div> <!-- /content -->
   
         <?php get_sidebar(); ?>
   
         <div class="clear"></div>
   
       </div> <!-- /wrapper section-inner -->
   
       <?php get_footer(); ?>
       ```
   
 *  Theme Author [Anders Norén](https://wordpress.org/support/users/anlino/)
 * (@anlino)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/archive-template-sidebar-problem/#post-4680296)
 * Hi Davicii,
 * According to the style.css file on your site, you’re currently running version
   1.23 of Hemingway. The latest version on the directory is 1.29.
 * I’ve posted the vanilla archive code here: [http://codeshare.io/tww9h](http://codeshare.io/tww9h)
   `

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

The topic ‘Archive Template Sidebar Problem’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hemingway/2.3.2/screenshot.jpg)
 * Hemingway
 * [Support Threads](https://wordpress.org/support/theme/hemingway/)
 * [Active Topics](https://wordpress.org/support/theme/hemingway/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hemingway/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hemingway/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Anders Norén](https://wordpress.org/support/users/anlino/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/archive-template-sidebar-problem/#post-4680296)
 * Status: resolved