Hallo Leute, ich brauche ganz dringend euere Hilfe.
Zum Template selbst: Ich nutze das Jovan-Theme mit diesem 3-Teiligen Slider.
1. Problem
Im Slider möchte ich 3 Kategorien verlinken, die dann jeweils Blogbeiträge jeweils dieser Kategorie anzeigen
Kategorie 1 | Kategorie 2 | Kategorie 3
-Kat 1:1.......-Kat 2:1.......-Kat 3:1
-Kat 1:2.......-Kat 2:2.......-Kat 4:1
-Kat 1:3.......-Kat 2:3.......-Kat 4:2
....................................-Kat 5:1
....................................-Kat 5:2
Also Kategorie 1 soll die Beiträge der Artikelkategorie Kat 1:1 - Kat 1:3 anzeigen,
Kategorie 2 die Beiträge aus der Artikelkategorie Kat 2:1 - 2:3 und Kategorie 3 alle restlichen Unterkategorien.
Wie löse ich das? Ich möchte die Formatierung in dieser Form:
<div class="post" id="post-263">
<div class="title">
<div class="datebox">
<span class="month">Mrz</span>
<span class="date">10</span>
</div>
<h2><a href="url zum beitrag" title="Beitragtitle">Title</a></h2>
</div>
<div class="cover">
<div class="entry">
<a href="url">
<img class="postim" src="wp-content/themes/Jovan/images/dummy.png" alt="">
</a>
<p>einleser [ Read More ]</a></p>
<div class="clear"></div>
</div>
</div>
<div class="singleinfo">
<span class="comm"> Geschrieben von admin </span>
<span class="morer"><a href="#respond" title="Kommentiere">0 Kommentare</a></span>
</div>
</div>
<div class="post" id="post-260">
<div class="title">
<div class="datebox">
<span class="month">Mrz</span>
<span class="date">08</span>
</div>
<h2><a href="url zum Beitrag" title="Beitrag-title">Titel des Beitrages</a></h2>
</div>
<div class="cover">
<div class="entry">
<a href="url">
<img class="postim" src="wp-content/themes/Jovan/images/dummy.png" alt="">
</a>
<p>einleser [ Read More ]</p>
<div class="clear"></div>
</div>
</div>
<div class="singleinfo">
<span class="comm"> Geschrieben von admin </span>
<span class="morer"><a href="#respond" title="Kommentiere">0 Kommentare</a></span>
</div>
</div>
Alles anzeigen
der PHP-Code der Index.php ist:
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="title">
<div class='datebox'>
<span class='month'><?php the_time('M'); ?></span>
<span class='date'><?php the_time('d'); ?></span>
</div>
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="cover">
<div class="entry">
<a href="<?php the_permalink() ?>">
<?php
if ( has_post_thumbnail() ) { ?>
<img class="postim" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&h=150&w=150&zc=1" alt="" />
<?php } else { ?>
<img class="postim" src="<?php bloginfo('template_directory'); ?>/images/dummy.png" alt="" />
<?php } ?>
</a>
<?php the_excerpt(); ?>
<div class="clear"></div>
</div>
</div>
<div class="singleinfo">
<span class="comm"> Geschrieben von <?php the_author(); ?> </span>
<span class="morer"><?php comments_popup_link('0 Kommentare', '1 Kommentar', '% Kommentare'); ?></span>
</div>
</div>
<?php endwhile; ?>
<div class="clear"></div>
<?php getpagenavi(); ?>
<?php else : ?>
<h2 class="title">Nicht gefunden</h2>
<p>Sorry, aber du suchst nach etwas, was hier nicht gefunden werden kann.</p>
<?php endif; ?>
</div>
<?php include (TEMPLATEPATH . '/cr.php'); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen
Kann es mir bitte jemand erklären?
2. Problem
ich möchte jeweils die Farben der Sidebar so angepasst sind, das man gleich wiedererkennt, in welcher Hauptkategorie man sich befindet. Quasi Kategorie 1, 2 oder 3.
Dies soll natürlich auch bei den Beiträgen sich weiterführen - also hintergrundfarbe der H3, linkfarbe etc.
Wie löse ich dieses Problem?
Grüße
Ritti