Hallo Leute,
ich habe momentan eine Kategorie, die alle meine Posts auf der Hauptseite anzeigt.
Nun möchte ich gerne, dass andere Posts aus einer anderen Kategorie auch angezeigt werden sollen.
Hier mal so wie es mit einer Kategorie aussieht:
<?php get_header(); ?><div id="right-content"> <div class="entrytop"></div> <div id="post-entry"> <?php if (have_posts()) : ?> <h1 style="text-align: center;" class="title"> <span style="color: rgb(153, 51, 0); font-size: 24pt; font-family: 'Arial Black',Gadget,sans-serif;">news</span></h1> <?php $recent = new WP_Query("cat=1931&showposts=114"); while($recent->have_posts()) : $recent->the_post();?> <div class="item1" onmouseover="this.className='item2'" onmouseout="this.className='item1'"> <?php $first_img = '';?> <?php $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);?> <?php $first_img = $matches [1] [0]; ?> <?php $newwindow = (get_post_meta($post->ID, "_pprredirect_newwindow", true)!='') ? ' target="_blank" ' : '';?> <?php $rnofollow = (get_post_meta($post->ID, "_pprredirect_relnofollow", true)!='') ? ' rel="nofollow" ' : '';?> <?php $bnofollow = (get_post_meta($post->ID, "_pprredirect_relnofollow", true)!='') ? ' rel="nofollow" ' : ' rel="bookmark" ';?> <p><a href="<?php the_permalink() ?>" title="target="_blank"<?php the_title(); ?>"<?php echo $rnofollow.$newwindow;?>><img src="<?php echo $first_img; ?>" height="120" width="160" alt="<?php the_title(); ?>" /></a></p> <div class="kategori"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"<?php echo $bnofollow.$newwindow;?>><?php the_title(); ?></a></div> <div class="rate"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></div> <div class="views"><?php if(function_exists('the_views')) { the_views(); } ?></div> <div class="clear"></div> </div> <?php endwhile; ?> <div class="clear"></div><br /> <?php else: ?> <h2>Sorry, but you are looking for something that isn't here.</h2> <?php endif; ?> </div> <?php include (TEMPLATEPATH . '/right-sidebar.php'); ?></div><?php get_sidebar(); ?><?php get_footer(); ?>
Wie bekomme ich es hin, dass auch die anderen Kategorie angezeigt werden? Eine weitere CAT ID z.B. so "cat=1931;2;3" hat nicht funktioniert.
Danke schonmal
hackbird