Herzlich willkommen im Archiv vom ABAKUS Online Marketing Forum
Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.
Hier eine AnleitungMorpheus1974 hat geschrieben:In die archive.php? Ist die Stelle egal?nicolas hat geschrieben:Dieser Template Tag muss auf in das Archiv Template.
<?php $description = tag_description(); ?>
Klar. Du setzt zum Beispiel vor die Kurzbeschreibung einen div mit eigener Klasse oder ID und formatierst das dann entsprechend in der style.css.Morpheus1974 hat geschrieben:Und noch ne Frage, kann man Schriftgröße ggf. in der style.css anpassen?
Code: Alles auswählen
<?php get_header(); ?>
<div id="content">
<div id="content-inner">
<div id="main">
<h2 id="sectiontitle"><?php single_tag_title('Posts tagged: '); ?></h2>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="tags-font">
<div class="entry">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt();?>
<div class="descr"><?php the_time('l F jS, Y') ?> in <?php the_tags(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></div>
</div>
</div>
<?php endwhile; ?>
<div id="navigation">
<div class="fleft"><?php next_posts_link('« Older') ?></div>
<div class="fright"> <?php previous_posts_link('Newer »') ?></div>
</div>
<?php else : ?>
<div class="post">
<div class="entry">
<h2>Not Found</h2>
<p>Sorry, you are looking for something that isn't here.</p>
</div>
</div>
<?php endif; ?>
</div> <!-- eof main -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Zum Beispiel wie oben zwischen dem h2 und dem have_posts()... Wenn dann immer noch nichts erscheint hast Du vermutlich entweder keine Tag-Description bei dem Tag eingetragen oder Dein WordPress ist zu alt.Morpheus1974 hat geschrieben:Was muss nun wohin???Code: Alles auswählen
... <div id="main"> <h2 id="sectiontitle"><?php single_tag_title('Posts tagged: '); ?></h2> <?php echo "<div class='deine-tag-desc-klasse'>".tag_description()."</div>"; ?> <?php if (have_posts()) : ?> ...