Hallo,
Mein Code der index.php sieht jetzt so aus:
PHP
<?php get_header(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 1 September 2005), see www.w3.org">
<title></title>
<style type="text/css">
a.c1 {color:#c00}
</style>
</head>
<body>
<div id="content" class="narrowcolumn">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<!-- von <?php the_author() ?> --></small>
<div class="entry">
<?php the_content('Den ganzen Beitrag lesen »'); ?>
</div>
<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Kategorie <?php the_category(', ') ?> <strong>|</strong> <?php comments_popup_link('0 Kommentare »', '1 Kommentar »', '% Kommentare »'); ?>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Vorherige Einträge') ?></div>
<div class="alignright"><?php previous_posts_link('Nächste Einträge »') ?></div>
</div>
<div class="kategorie-start">Boulevard</div>
<div class="entry">
<div id="cats">
<?php query_posts('cat=14&showposts=3'); ?>
<?php while (have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <?php the_content_limit(400, "mehr...");?>
<?php endwhile;?>
</div>
</div>
<div class="kategorie-start">Boulevard</div>
<div class="entry">
<div id="cats">
<?php query_posts('cat=14&showposts=3'); ?>
<?php while (have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <?php the_content_limit(400, "mehr...");?>
<?php endwhile;?>
</div>
</div>
<div class="kategorie-start">Boulevard</div>
<div class="entry">
<div id="cats">
<?php query_posts('cat=14&showposts=3'); ?>
<?php while (have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <?php the_content_limit(400, "mehr...");?>
<?php endwhile;?>
</div>
</div>
<?php else : ?>
<h2 class="center">Nicht gefunden</h2>
<p class="center">Sorry, aber du suchst gerade nach etwas, was hier nicht ist.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
</body>
</html>
Alles anzeigen
Ich möchte nun gerne, dass "der normale Artikel ganz oben" nicht auf Start erscheint, sondern nur meine Programmierungen am "cat", also ab hier:
PHP
<div class="kategorie-start">Boulevard</div>
<div class="entry">
<div id="cats">
<?php query_posts('cat=14&showposts=3'); ?>
<?php while (have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <?php the_content_limit(400, "mehr...");?>
<?php endwhile;?>
</div>
</div>
<div class="kategorie-start">Boulevard</div>
<div class="entry">
<div id="cats">
<?php query_posts('cat=14&showposts=3'); ?>
<?php while (have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <?php the_content_limit(400, "mehr...");?>
<?php endwhile;?>
</div>
</div>
<div class="kategorie-start">Boulevard</div>
<div class="entry">
<div id="cats">
<?php query_posts('cat=14&showposts=3'); ?>
<?php while (have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <?php the_content_limit(400, "mehr...");?>
<?php endwhile;?>
</div>
</div>
Alles anzeigen
Ich bekomme es nicht hin.
Könnt ihr mir bitte sagen wie der Code sein muss ?