So habs ausprobiert. Aber es funktioniert nicht. Der Code sieht folgerndermaßen aus:
PHP
<div id="con-i">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php if ( !(in_category('11,12,13')) ) { ?><!--sperrt artikel -->
<?php the_date('','<h2>','</h2>'); ?>
<div class="post">
<h3 class="storytitle" id="post-<?php the_ID(); ?>">
<a href="<?php the_permalink() ?>" rel="bookmark">
<?php the_title(); ?>
</a>
</h3>
<div class="meta">
<?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?>
</div>
<div class="storycontent">
<?php the_content(__('(more...)')); ?>
</div>
<div class="feedback">
<?php wp_link_pages(); ?>
<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
</div>
<!--
<?php trackback_rdf(); ?>
-->
<?php } ?> <!-- Close the if statement. -->
</div>
Alles anzeigen