17.04.2017 Änderungen:
in archive.php Abfrage nach den Kategorien „Aktuelles“ und „Das Team“
Ausgabe Aktuelles als Excerpt über content-aktuelles (vorläufig gleiches php-script wie content-excerpt),
Ausgabe Team als Seite (content-full)
Eingefügter Code (archive.php)
<!– Der aktuelle category-Name: –>
<?php $current_category = single_cat_title(„“, false); ?>
<!– Wenn Post-Type category Aktuelles ist –>
<!– dann Ausgabe ueber content-aktuelles –>
<?php if ( ‚Aktuelles‘ == $current_category ) : ?>
<!– Statt content-excerpt auf content-aktuelles verzweigen –>
<?php get_template_part( ‚content-aktuelles‚, get_post_format() ); ?>
<?php elseif ( ‚Das Team‘ == $current_category ) : ?>
<!– Fuer category Das Team Ausgabe ueber content-full –>
<?php get_template_part( ‚content-full‚, get_post_format() ); ?>
<?php else: ?>
<!– Alle anderen post-categorien ueber content full ausgeben –>
<?php //echo“ Ausgabe content-full“; ?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( ‚content-full‚, get_post_format() );
?>
<!– if Abfrage categorien Aktuelles und Das Team Ende –>
<?php endif; ?>