Erste Kategorie links:
PHP Alles anzeigen<?php query_posts('category_name=kategorie1'); ?> <?php while (have_posts()) : the_post(); ?> <div <?php post_class(); ?> id="left post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2> <small><?php the_time(__('F jS, Y', 'kubrick')) ?> <!-- by <?php the_author() ?> --></small> <div class="entry"> <?php the_content(__('Read the rest of this entry »', 'kubrick')); ?> </div> <p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ''); ?> <?php //comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?></p> </div> <?php endwhile; ?>2. Kategorie-Loop gleich dadrunter:
PHP Alles anzeigen<?php query_posts('category_name=kategorie2'); ?> <?php while (have_posts()) : the_post(); ?> <div <?php post_class(); ?> id="right post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2> <small><?php the_time(__('F jS, Y', 'kubrick')) ?> <!-- by <?php the_author() ?> --></small> <div class="entry"> <?php the_content(__('Read the rest of this entry »', 'kubrick')); ?> </div> <p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ''); ?> <?php //comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?></p> </div> <?php endwhile; ?>Und dann #left und #right mit CSS stylen, dass #left links floatet und eine feste Breite hat. #right bekommt dann auch noch eine feste Breite.
Was bei dieser Methode hinzugefügt werden muss, ist:
Kann mir jemand sagen, was ich davon wo eintragen muss??
Ich habe den ganzen Nachmittag damit verbracht, bin aber kein Stück weiter als gestern :(