Hallo,
ich benutze das Branford Magazine Theme für mein neues Portal:
Playstation 3 Info Blog
So, in der linken Spalte im Content Bereich werden automatisch die letzten 6 Artikel der Kategorien "1,4,9 und 10" angezeigt. Ich würde es jetzt aber gerne so einrichten, dass wenn ein Artikel, der in einer dieser 4 Kategorien ist auch in Kategorie 3 ist dann nicht in der linken Spalte erscheint. Also, dass die Zugehörigkeit eines Artikels zu Kategorie 3 die Anzeige in dieser linken Spalte verwährt, obwohl der Artikel auch in einer der 4 definierten Kategorien ist. Ein ganz normales exclude reicht net oder? Weil ja die andere Bedingung erfüllt ist. Muss man das irgendwie über if machen? Ich habe keine Ahnung... :-|
PHP
// "Featured articles" module begins
query_posts('showposts=6&cat=1,4,9,10'); ?>
<h3>
<?php
// name of the "featured articles" category gets printed
wp_list_categories('include=13&title_li=&style=none'); ?></h3>
<?php while (have_posts()) : the_post(); ?>
<div class="feature"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('url'); echo '/'; echo get_option('upload_path'); echo '/';
// this is where the custom field prints images for each Feature
$values = get_post_custom_values("featuredarticleimage"); echo $values[0]; ?>" alt="featuredimage" /></a><a href="<?php the_permalink() ?>" rel="bookmark" class="title">
<?php
// title of the "featured articles"
the_title(); ?></a>
<p><?php the_content_rss('', TRUE, '', 20); ?></p>
</div>
<?php endwhile; ?>
</div><!--END LEFTCOL-->
Alles anzeigen