Hallo, ich brauche mal Eure Hilfe, bin am verzweifeln.
Wie schaffe ich, da eine statische Seite dynamisch Inhalte einer bestimmten Kategorie ausgibt. Ich weiß nicht, wo ich in dem Template was ändern muss, um z.B. nur Artikel der Kategorie 23 auszugeben. Danke
Vorlage der Seite page.php
PHP
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen