ein neuer versuch diesmal etwas mehr im detail, weil ich doch noch daran glaube, dass es was mit dem floaten zu tun hat.
[COLOR=#0000cc]<?php get_header[/COLOR][COLOR=#006600](); [/COLOR][FONT=Courier New][COLOR=#0000cc]?>[/COLOR][/FONT]
[FONT=Courier New] <div id="content">[/FONT]
[FONT=Courier New][COLOR=#ff8c00]<div id="sidebar_container">[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000cc]<?php [/COLOR][COLOR=#006600]include([/COLOR][COLOR=#cc0000]'sidebar.php'[/COLOR][COLOR=#006600]); [/COLOR][/FONT][FONT=Courier New][COLOR=#0000cc]?>[/COLOR][/FONT]
[FONT=Courier New][COLOR=darkorange]</div>[/COLOR][/FONT]
[FONT=Courier New]<!-- der zweite sidebar_2 geht ans ende --> [/FONT]
[COLOR=#000000][FONT=Courier New][COLOR=#ff8c00]<div id="post_wrapper">[/COLOR][/FONT] [/COLOR]
[COLOR=#000000][FONT=Courier New][COLOR=#0000cc]<?php [/COLOR][COLOR=#006600]if ([/COLOR][COLOR=#0000cc]have_posts[/COLOR][COLOR=#006600]()) : [/COLOR][/FONT][FONT=Courier New][COLOR=#0000cc]?>[/COLOR][/FONT]
[FONT=Courier New] ....[/FONT]
[FONT=Courier New][COLOR=#0000cc]<?php [/COLOR][COLOR=#006600]while ([/COLOR][COLOR=#0000cc]have_posts[/COLOR][COLOR=#006600]()) : [/COLOR][COLOR=#0000cc]the_post[/COLOR][COLOR=#006600](); [/COLOR][/FONT][FONT=Courier New][COLOR=#0000cc]?>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000cc]<?php [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000cc] $image [/COLOR][COLOR=#006600]= [/COLOR][COLOR=#0000cc]get_post_meta[/COLOR][COLOR=#006600]([/COLOR][COLOR=#0000cc]$post[/COLOR][COLOR=#006600]->[/COLOR][COLOR=#0000cc]ID[/COLOR][COLOR=#006600], [/COLOR][COLOR=#cc0000]'image'[/COLOR][COLOR=#006600], [/COLOR][COLOR=#0000cc]$single [/COLOR][COLOR=#006600]= [/COLOR][COLOR=#0000cc]true[/COLOR][/FONT][FONT=Courier New][COLOR=#006600]); [/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000cc]$image_class [/COLOR][COLOR=#006600]= [/COLOR][COLOR=#0000cc]get_post_meta[/COLOR][COLOR=#006600]([/COLOR][COLOR=#0000cc]$post[/COLOR][COLOR=#006600]->[/COLOR][COLOR=#0000cc]ID[/COLOR][COLOR=#006600], [/COLOR][COLOR=#cc0000]'image class'[/COLOR][COLOR=#006600], [/COLOR][COLOR=#0000cc]$single [/COLOR][COLOR=#006600]= [/COLOR][COLOR=#0000cc]true[/COLOR][/FONT][FONT=Courier New][COLOR=#006600]);[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000cc]$image_alt [/COLOR][COLOR=#006600]= [/COLOR][COLOR=#0000cc]get_post_meta[/COLOR][COLOR=#006600]([/COLOR][COLOR=#0000cc]$post[/COLOR][COLOR=#006600]->[/COLOR][COLOR=#0000cc]ID[/COLOR][COLOR=#006600], [/COLOR][COLOR=#cc0000]'image alt'[/COLOR][COLOR=#006600], [/COLOR][COLOR=#0000cc]$single [/COLOR][COLOR=#006600]= [/COLOR][COLOR=#0000cc]true[/COLOR][/FONT][COLOR=#006600][FONT=Courier New]); [/FONT][/COLOR]
[FONT=Courier New][COLOR=#0000cc]?>[/COLOR][/FONT]
[FONT=Courier New] <div class="post">[/FONT]
[FONT=Courier New] <h2 class="h2title">[/FONT]
[FONT=Courier New] <a href="[COLOR=#0000cc]<?php the_permalink[/COLOR][COLOR=#006600]() [/COLOR][COLOR=#0000cc]?>[/COLOR]" rel="bookmark" [/FONT]
[FONT=Courier New]style="display:block; width:400px; float:right;">[COLOR=#0000cc]<?php the_title[/COLOR][COLOR=#006600](); [/COLOR][COLOR=#0000cc]?>[/COLOR]</a>[/FONT]
[FONT=Courier New] <span class="comment">[/FONT][FONT=Courier New][COLOR=#0000cc]<?php comments_popup_link[/COLOR][/FONT]
[FONT=Courier New][COLOR=#006600]([/COLOR][COLOR=#cc0000]'Keine Kommentare'[/COLOR][COLOR=#006600], [/COLOR][COLOR=#cc0000]'1 Kommentar'[/COLOR][COLOR=#006600], [/COLOR][COLOR=#cc0000]'% Kommentare'[/COLOR][COLOR=#006600]); [/COLOR][COLOR=#0000cc]?>[/COLOR]</span>[/FONT]
[FONT=Courier New] </h2>[/FONT]
[FONT=Courier New] <div class="entry">[/FONT]
[FONT=Courier New][COLOR=#0000cc]<?php [/COLOR][/FONT][FONT=Courier New][COLOR=#ff9900]// if there's a thumbnail[/COLOR][/FONT]
[FONT=Courier New][COLOR=#006600]if([/COLOR][COLOR=#0000cc]$image [/COLOR][COLOR=#006600]!== [/COLOR][COLOR=#cc0000]''[/COLOR][COLOR=#006600]) { [/COLOR][/FONT][FONT=Courier New][COLOR=#0000cc]?>[/COLOR][/FONT]
[FONT=Courier New]<p> [/FONT]
[FONT=Courier New]<a href="[COLOR=#0000cc]<?php the_permalink[/COLOR][COLOR=#006600]() [/COLOR][COLOR=#0000cc]?>[/COLOR]">[/FONT]
[FONT=Courier New]<img src="[COLOR=#0000cc]<?php [/COLOR][COLOR=#006600]echo [/COLOR][COLOR=#0000cc]$image[/COLOR][COLOR=#006600]; [/COLOR][COLOR=#0000cc]?>[/COLOR]"[/FONT]
[FONT=Courier New]class="[COLOR=#0000cc]<?php [/COLOR][COLOR=#006600]if([/COLOR][COLOR=#0000cc]$image_class [/COLOR][COLOR=#006600]!== [/COLOR][COLOR=#cc0000]''[/COLOR][COLOR=#006600]) { echo [/COLOR][COLOR=#0000cc]$image_class[/COLOR][COLOR=#006600]; } else { echo [/COLOR][COLOR=#cc0000]"left"[/COLOR][COLOR=#006600]; } [/COLOR][COLOR=#0000cc]?>[/COLOR]"[/FONT]
[FONT=Courier New]style="border:1px dashed #F3E3D7; padding:3px;"[/FONT]
[FONT=Courier New]alt="[COLOR=#0000cc]<?php [/COLOR][COLOR=#006600]if([/COLOR][COLOR=#0000cc]$image_alt [/COLOR][COLOR=#006600]!== [/COLOR][COLOR=#cc0000]''[/COLOR][COLOR=#006600]) { echo [/COLOR][COLOR=#0000cc]$image_alt[/COLOR][COLOR=#006600]; } else { echo [/COLOR][COLOR=#0000cc]the_title[/COLOR][COLOR=#006600](); } [/COLOR][COLOR=#0000cc]?>[/COLOR]"[/FONT]
[FONT=Courier New]/>[/FONT]
[FONT=Courier New]</a>[/FONT]
[FONT=Courier New]</p>[/FONT]
[FONT=Courier New][COLOR=#0000cc]<?php [/COLOR][COLOR=#006600]} [/COLOR][/FONT][FONT=Courier New][COLOR=#ff9900]// end if statement[/COLOR][/FONT]
[FONT=Courier New][COLOR=#ff9900]// if there's not a thumbnail[/COLOR][/FONT]
[FONT=Courier New][COLOR=#006600]else { echo [/COLOR][COLOR=#cc0000]''[/COLOR][COLOR=#006600]; } [/COLOR][/FONT][FONT=Courier New][COLOR=#0000cc]?>[/COLOR][/FONT]
[FONT=Courier New][COLOR=#0000cc]<?php the_excerpt[/COLOR][COLOR=#006600](); [/COLOR][/FONT][FONT=Courier New][COLOR=#0000cc]?>[/COLOR][/FONT]
[FONT=Courier New] </div>[/FONT]
[FONT=Courier New] <div class="postmetadata">[/FONT]
[FONT=Courier New] Kategorie: [COLOR=#0000cc]<?php the_category[/COLOR][COLOR=#006600]([/COLOR][COLOR=#cc0000]', '[/COLOR][COLOR=#006600]) [/COLOR][/FONT][FONT=Courier New][COLOR=#0000cc]?>[/COLOR][/FONT]
[FONT=Courier New] <br />[COLOR=#0000cc]<?php the_tags[/COLOR][COLOR=#006600](); [/COLOR][/FONT][FONT=Courier New][COLOR=#0000cc]?>[/COLOR][/FONT]
[FONT=Courier New] </div>[/FONT]
[FONT=Courier New] </div>[/FONT]
[FONT=Courier New][COLOR=#0000cc]<?php [/COLOR][COLOR=#006600]endwhile; [/COLOR][/FONT][FONT=Courier New][COLOR=#0000cc]?>[/COLOR][/FONT]
[FONT=Courier New]...[/FONT]
[FONT=Courier New][COLOR=#0000cc]<?php [/COLOR][COLOR=#006600]} [/COLOR][/FONT][FONT=Courier New][COLOR=#0000cc]?>[/COLOR][/FONT]
[FONT=Courier New] </div>[/FONT]
[FONT=Courier New][COLOR=#0000cc]<?php [/COLOR][COLOR=#006600]else : [/COLOR][/FONT][FONT=Courier New][COLOR=#0000cc]?>[/COLOR][/FONT]
[FONT=Courier New] <h2>Nichts gefunden</h2>[/FONT]
[FONT=Courier New] <p>Bitte suchen Sie noch einmal</p>[/FONT]
[FONT=Courier New][COLOR=#0000cc]<?php [/COLOR][COLOR=#006600]endif; [/COLOR][/FONT][FONT=Courier New][COLOR=#0000cc]?>[/COLOR][/FONT]
[FONT=Courier New][COLOR=darkorange]</div> <!-- ende von #post_wrapper-->[/COLOR][/FONT][/COLOR]
[FONT=Courier New][COLOR=#ff8c00]<div id=""right_bar_container">[/COLOR][/FONT]
[COLOR=#000000][FONT=Courier New][COLOR=#0000cc]<?php [/COLOR][COLOR=#006600]include([/COLOR][COLOR=#cc0000]'sidebar_2.php'[/COLOR][COLOR=#006600]); [/COLOR][COLOR=#0000cc]?>[/COLOR][/FONT] [/COLOR]
[FONT=Courier New][COLOR=#ff8c00]</div> [/COLOR][/FONT]
[COLOR=#000000][FONT=Courier New] <div class="clear_both"></div>[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier New][COLOR=#0000cc]<?php get_footer[/COLOR][COLOR=#006600](); [/COLOR][COLOR=#0000cc]?>[/COLOR][/FONT][/COLOR]
Alles anzeigen
und dazu die css:
#sidebar_container, #post_wrapper, #right_bar_container {
margin:0; padding:0; border:none;
}
#sidebar_container {
width:25%; float:left; height:100%; margin-right:0.5%;
}
#post_wrapper {
width:49%; float:left; height:100%;
}
#right_bar_container {
width:25%; float:left; height:100%;
}
#sidebar {
width:auto; margin:5px; /*margin und padding anpassen*/
}
#right_bar {
width:auto; margin:5px; /*margin und padding anpassen*/
}
.post {
width:auto; margin:5px; /*margin und padding anpassen*/
}
Alles anzeigen
das muss entsprechend dann auch in page.php, single.php, usw. eingefuegt werden.
zur veranschaulichung habe ich ein beispiel hochgeladen.