Hallo,
ich möchte mit folgendem Conditional Tag das Artikelbild in Posts von zwei Kategorien (4 und 9) NICHT anzeigen und hab es so versucht:
PHP
<?php if (is_single() || ! ( in_category ('4,9'))) { ?>
<div class="entry-thumbnail">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail( 'thumb-featured' ); ?>
</a>
</div>
<?php } else {?>
<?php } ?>
Alles anzeigen
Irgendwo hakt es da. Findet jemand den Fehler? DANKE!