So, Hi Leute ich habezwei Probleme,
1. Ich habe nur eine Kategorie bei den Blog Einträgen also die Allgemeine, wenn ich jetzt zwei drei Beiträge in dieser Kategorie schreibe haben beim Darstellen alle den gleichen Titel nur der Text is anders, schauts euch mal an auf http://www.djsg.ch/new/wordpress/index.php . Hier der Code zur Index.php
PHP
<?php get_header(); ?>
<?php query_posts('posts_per_page=10'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="subnavigation"></div>
<div id="left_right_top"></div>
<div id="linkespalte"><div id="linkespalte-abstand">
<?php $posts = get_posts('numberposts=1&category=1'); foreach($posts as $post) : ?>
<div class="artikel">
<h5><?php the_category(' | '); ?> » <?php the_time('d-m-y'); ?></h5>
<h2><?php the_title(); ?></h2>
<?php the_content('Weiterlesen...'); ?>
<hr />
</div>
<?php endforeach; ?>
</div><!-- + + ende linkespalte-abstand + + --></div><!-- + + ende linkespalte + + -->
<div id="rechtespalte"><div id="rechtespalte-abstand">
</div><!-- + + ende rechtespalte-abstand + + -->
</div><!-- + + ende rechtespalte + + -->
<?php endwhile; else: ?>
<?php endif; ?>
<?php get_footer(); ?>
Alles anzeigen
2. Problem
Immer wenn ich einen neuen Beitrag schreibe wird wiederholt sich die Hintergrund der DIV oberhalb der Artikel, aber nur auf der rechten und nicht auf der linken, obwohl sich dieses DIV über beide Spalten erstreckt, hier noch meine Style.css :
Code
/*
Theme Name: DJSG Theme
Theme URI: http://www.djsg.ch
Description: DJSG Theme.
Version: 0.1
Author: CHristoph Leuthold
Author URI: http://binarybonsai.com/
*/
html, body {
margin: 0;
padding: 0;
font-family : Verdana, Helvetica, Geneva, Arial, sans-serif;
background : #000;
color: #000;
text-align: center;
font-size: 14px;
}
.logo {
margin: 0;
padding: 0;
border: none;
}
a:link {
border-bottom:1px dotted #999;
color:#999;
}
a:hover {
border-bottom:1px solid #999;
color:#999;
}
hr {
background-color:#000; /* Mozilla 1.4 */
color:#000; /* IE 6 */
border: #000; /* Opera 7.11 */
height: 1px; /* in Opera für die Anzeige nötig, in Mozilla für die einheitliche Höhe */
}
/* --- LAYOUT -------------------------- */
#gesamteseite {
margin: 0;
padding: 0;
margin-left: auto;
margin-right: auto;
width: 1024px;
text-align: left;
background: #fff url('images/bg.gif');
}
#kopfzeile {
margin: 0;
padding: 0;
width: 1024px;
height: 186px;
background: Green;
}
#navigation {
margin: 0;
padding: 0;
width: 1024px;
height: 22px;
background: #fff url('images/navigation_bg.gif');
}
#subnavigation {
margin: 0;
padding: 0;
width: 1024px;
height: 14px;
background: #fff url('images/subnavigation_bg.gif');
}
#left_right_top {
margin: 0;
padding: 0;
width: 1024px;
height: 13px;
background: #fff url('images/left_right_top.gif') top;
}
#linkespalte {
margin: 0;
padding: 0;
width: 683px;
float: left;
background: #fff url('images/left_bg.gif');
text-padding: 100px;
}
#rechtespalte {
margin: 0;
padding: 0;
width: 341px;
float: right;
background: #fff url('images/right_bg.gif') top right;
}
#fusszeile {
margin: 0;
padding: 0;
clear: both;
text-align: center;
width: 1024px;
height: 30px;
background: #fff url('images/fusszeile_bg.gif') top right;
}
#linkespalte-abstand {
margin: 0px 10px 10px 120px;
}
#rechtespalte-abstand {
margin: 0px 120px 10px 10px;
}
Alles anzeigen
Vielen Dank für eure hilfe
gruss
Gurgel