Prilagam fajl in link na stran, kjer se zmeraj ne dela(tukaj)
tisti ki najde napako dobi za pivo
<?php /*
Template Name: Archives (Do Not Use Manually)
*/ ?>
<?php /* Counts the posts, comments and categories on your blog */
$numposts = $wpdb->get_var("SELECT COUNT(1) FROM $wpdb->posts WHERE post_status = 'publish' AND post_type != 'page'");
if (0 < $numposts) $numposts = number_format($numposts);
$numcomms = $wpdb->get_var("SELECT COUNT(1) FROM $wpdb->comments WHERE comment_approved = '1'");
if (0 < $numcomms) $numcomms = number_format($numcomms);
$numcats = count(get_all_category_ids());
?>
<?php get_header(); ?>
<div class="content">
<div id="primary">
<div id="notices"></div>
<div id="current-content" class="hfeed">
<?php the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="<?php k2_post_class(); ?>">
<div class="page-head">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title='<?php printf( __('Permanent Link to "%s"','k2_domain'), wp_specialchars(strip_tags(the_title('', '', false)),1) ); ?>'><?php the_title(); ?></a></h2>
<?php edit_post_link(__('Edit','k2_domain'), '<span class="entry-edit">','</span>'); ?>
</div>
<div class="entry-content">
<p><?php printf(__('Arhiv za %1$s trenutno vsebuje %2$s vpisov in %3$s komentarjev, urejenih v %4$s kategorije. Tukaj si lahko ogledate kje smo nastopali.','k2_domain'), get_bloginfo('name'), $numposts, $numcomms, $numcats); ?></p>
<h3><?php _e('Kje smo igrali','k2_domain'); ?></h3>
<ul class="archive-list"><center>
<?php if (is_page('129')) {query_posts('cat=-4');}?>
<?php get_archives('postbypost', '100', 'custom', '', '<br />'); ?>
</center>
</ul>
<br class="clear" />
<!--
<h3><?php _e('Kje smo igrali','k2_domain'); ?></h3>
<ul class="archive-list">
<?php $temp_query = $wp_query; query_posts('showposts=100&cat=-4'); ?>
<?php while (have_posts()) {the_post(); ?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to “<?php the_title(); ?>”"><?php the_title(); ?></a></li>
<?php } $wp_query = $temp_query; ?>
</ul>
<br class="clear" />
-->
<?php if (function_exists('wp_tag_cloud')) { ?>
<h3><?php _e('Tagi','k2_domain'); ?></h3>
<div id="tag-cloud">
<?php wp_tag_cloud(); ?>
</div>
<?php } // End Tag Check ?>
</div> <!-- .entry-content -->
</div> <!-- #post-ID -->
</div> <!-- #current-content .hfeed -->
<div id="dynamic-content"></div>
</div> <!-- #primary -->
<?php get_sidebar(); ?>
</div> <!-- .content -->
<?php get_footer(); ?>