Hello,
try to work on it, but didn’t get it.
Thats the home.php file:
<?php get_header(); ?>
<?php
$i = 0;
global $do_not_duplicate;
$temp = $wp_query;
$wp_query = NULL;
$args = array(
'paged' => $paged,
'post__not_in' => $do_not_duplicate
);
$wp_query = new WP_Query();
$wp_query->query($args);
while ($wp_query->have_posts()) : $wp_query->the_post(); $i++; ?>
<div class="span-8 post-<?php the_ID(); ?><?php if ($i == 3) { ?> last<?php } ?>">
<h6 class="archive-header"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title() ?></a></h6>
<?php get_the_image( array( 'custom_key' => array( 'thumbnail' ), 'default_size' => 'thumbnail', 'width' => '310', 'height' => '150' ) ); ?>
<?php the_excerpt(); ?>
<?php $cats = get_the_category(); $cat_link = get_category_link( $cats[0]->term_id ); ?>
</div>
<?php if ($i == 3) { ?><div class="archive-stack clear"></div><?php $i = 0; } ?>
<?php endwhile; ?>
<div class="clear"></div>
<div class="navigation clearfix">
<div><?php next_posts_link('« Older Entries') ?></div>
<div><?php previous_posts_link('Newer Entries »') ?></div>
</div><div class="clear"></div>
<?php $wp_query = NULL; $wp_query = $temp;?>
<?php get_template_part( 'bottom' ); ?>
<?php get_footer(); ?>
Think thats the line I have to work with??:
<?php $cats = get_the_category(); $cat_link = get_category_link( $cats[0]->term_id ); ?>
But how exactly?
Thank you for help