Hi Leute,
ich bekomme die Navigation leider nicht in meinen Kategorien zum Laufen. Ich vermute es liegt an wp_query. Habe schon einige Threads im englischen Forum durchstöbert, hat aber leider nicht gebracht.
Wenn jemand mal über meine Code gucken könnte, wäre das toll.
Danke
ZitatAlles anzeigen<?php
$temp = $wp_query;
$wp_query= null;
$count = 0;
$args = array( 'post_type' => 'produkt', 'posts_per_page' => 20, 'paged' => $paged );
query_posts( $args );
$wp_query = new WP_Query( $args );
while($wp_query->have_posts()) : $wp_query->the_post()
?>
<div class="box<?php if( $count%2 == 0 ) { echo '-1'; }; $count++; ?>"><a href="<?php the_permalink(); ?>">
<div id="product_cell_image"><?php the_post_thumbnail(array(93,120)); ?></div>
<h3 class="product"><?php the_title(); ?></h3></a>
<div id="product_cell_manufacture"><?php $product_details = get_post_meta($post->ID,'_product_details',TRUE);echo $product_details['manufacturer'];?></div></div>
<?php endwhile; ?>
<div style="float:left;height:100px;width:100px;">
<div class="alignleft"><?php previous_posts_link('« Previous') ?></div>
<div class="alignright"><?php next_posts_link('More »') ?></div>
</div>
<?php $wp_query = null; $wp_query = $temp;?></div>