das cleancat-plugin scheint nicht zu funktionieren, es werden trotz aktivierung noch immer alle beiträge darunter liegender kategorien angezeigt. ich habe einfach keine ahnung wie man das plugin konfiguriert.
nun wollte ich die alternative ausprobieren und den php-code:
PHP
[COLOR=#000000][FONT=Courier New][COLOR=#0000cc]<?php $showthis[/COLOR][COLOR=#006600]=[/COLOR][COLOR=#0000cc]0[/COLOR][COLOR=#006600];foreach (([/COLOR][COLOR=#0000cc]get_the_category[/COLOR][COLOR=#006600]()) as [/COLOR][COLOR=#0000cc]$postcat[/COLOR][COLOR=#006600]) { if ([/COLOR][COLOR=#0000cc]$postcat[/COLOR][COLOR=#006600]->[/COLOR][COLOR=#0000cc]cat_ID[/COLOR][COLOR=#006600]==[/COLOR][COLOR=#0000cc]$cat[/COLOR][COLOR=#006600]) { [/COLOR][COLOR=#0000cc]$showthis[/COLOR][COLOR=#006600]=[/COLOR][COLOR=#0000cc]1[/COLOR][/FONT][FONT=Courier New][COLOR=#006600]; }}[/COLOR][/FONT]
[FONT=Courier New][COLOR=#006600]if ([/COLOR][COLOR=#0000cc]1[/COLOR][COLOR=#006600]==[/COLOR][COLOR=#0000cc]$showthis[/COLOR][COLOR=#006600]) : [/COLOR][COLOR=#0000cc]?>[/COLOR] [/FONT][/COLOR]
in die category.php einsetzen, aber wo genau?
in welche zeile?