Hallo Leute ^^
zu meiner Frage gibt es unzählige Postings, ich hab auch unzählige Ideen ausprobiert, am ende lande ich leider nur auf einer weißen seite...
ich hoffe nun, das mir vielleicht jemand konkret helfen kann. Ich möchte auf meiner Startseite - drei artikel aus jeweils 3 Kategorien in einem Kategorieblock anzeigen lassen.
- http://www.se-heaven.de/
- WP 3.4.2
- iGame theme
Mittlerweile schaffe ich es dank
drei artikel, dank der Standardfunktion, der Kategorie 5 anzeigen zu lassen. Jedoch schaffe ich es patou nicht, das auch noch für zwei weitere Kategorien umzusetzen. Mein code sieht derzeit so aus:
PHP
<div id="content">
<div class="single-title"> Neues auf Square Enix Heaven!</div>
<?php if(is_home()) { include (TEMPLATEPATH . '/featured.php'); } ?>
<?php if (have_posts()) : ?>
<?php query_posts('category_id=5'); ?><?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div class="home-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></div>
<table>
<tr>
<td width="115px" height="115px">
<?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(200,160), array("class" => "alignleft post_thumbnail")); } ?>
</td>
<td>
<!-- Uhrzeit / Autor / Editfunktion -->
<div class="postdate">
<?php the_time('d.m.Y - H:i:s') ?> | <strong><?php the_author() ?></strong> <?php if (current_user_can('edit_post', $post->ID)) { ?> | <?php edit_post_link('Bearbeiten', '', ''); } ?>
</div>
<div class="entry">
<?php the_content(''); ?>
<br clear="all">
<!-- Weiterlesen & Diskutieren -->
<div class="readmorecontent">
<a class="readmore" href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">Weiterlesen</a>
<?php if ( get_post_meta($post->ID, 'Diskutieren', true) ) : ?>
<a class="readmore" href="<?php echo get_post_meta($post->ID, 'Diskutieren', true) ?> title="Über <?php the_title_attribute(); ?> Diskutieren">Diskutieren</a>
<?php endif; ?>
</div>
</div>
</td>
</tr>
</table>
</div><!--/post-<?php the_ID(); ?>-->
<?php endwhile; ?>
<?php else : ?>
<h2 class="center">Was is denn hia Passiert, zefix?!</h2>
<p class="center">Es tut uns Leid, aba du suchst nach etwas das ned hia is, zefix.</p>
<?php get_search_form(); ?>
<?php endif; ?>
</div>
<div class="navigation">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
<div class="alignleft"><?php next_posts_link('« Ältere Einträge') ?></div>
<div class="alignright"><?php previous_posts_link('Neuere Einträge »') ?></div>
<?php } ?>
</div>
</div>
<!-- end of left content -->
Alles anzeigen
Ich weiß das <table> ist nicht "modern" oder besser gesagt nicht die sauberste Lösung, aber ist auch nur eine platzhalter variante.