Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- get_header();
- <div id="content">
- <div id="news">
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
- <? include 'php/get_category.php'; ?>
- <div class="post <? echo $cat; ?>">
- <span class="meta">
- <span class="cat"><? echo $cat_name; ?> <span class="date"><?php the_time(get_option('date_format')); ?></span> </span>
- </span>
- <span class="fill">
- <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
- <? if ( has_post_thumbnail() ) ?>
- <a href="<?php the_permalink() ?>"> <? the_post_thumbnail('front-thumbs'); ?> </a>
- <span class="article-text">
- <a href="<?php the_permalink() ?>"> <?php the_excerpt(); ?> </a>
- </span>
- </span>
- </div><!-- end post -->
- <?php endwhile; endif; wp_reset_query(); ?>
- <?php /* Display navigation to next/previous pages when applicable */ ?>
- <?php if ( $wp_query->max_num_pages > 1 ) : ?>
- <div id="nav-below" class="navigation">
- <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Vorige artikelen' ) ); ?></div>
- <div class="nav-next"><?php previous_posts_link( __( 'Volgende artikelen <span class="meta-nav">→</span>' ) ); ?></div>
- </div><!-- #nav-below -->
- <?php endif; wp_reset_query(); ?>
- </div><!-- #news -->
- <? // sidebar-selection
- if ( is_category('3') || is_category('69') ) {
- get_sidebar('description');
- } elseif ( is_category('11') ) {
- get_sidebar('interview'); //this is the sidebar with the code in question that won't work
- } else {
- get_sidebar('latest');
- }
- ?>
- </div><!-- #content -->
- <? get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement