Hi,
bastel gerade an einem Theme und bekomme soweit alles hin, bis auf die Ausgabe der Tags.
Angaben wie Autor, Kategorien, etc funktionieren wunderbar, nur die Tags nicht.
Habe schon alle Beispiele aus der Codex Seite versucht, aber nichts will.
Hier mal der Code meiner Indexseite.
<?php get_header(); ?>
<div id="main">
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="entry">
<div class="head">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', ''), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
<div class="date">
<p class="day"><?php the_time(__('j')) ?></p>
<p class="month"><?php the_time(__('M')) ?></p>
</div>
</div>
<div class="content">
<?php the_content(__('(more...)')); ?>
</div>
<div class="foot">
<ul>
<li><span class="kommentare"><?php comments_popup_link(__('0'), __('1'), __('%'), '', __('-') ); ?></span></li>
<li><span class="tags"><?php the_tags('Tags: ', ', ', '<br />'); ?></span></li>
<li><span class="kategorie"><?php the_category(', ') ?></span></li>
<li><span class="autor"><?php the_author() ?></span></li>
</ul>
</div>
</div>
<?php endwhile; ?>
<?php posts_nav_link(' — ', __('« Newer Posts'), __('Older Posts »')); ?>
<?php else : ?>
<h2 class="center"><?php _e('Not Found', ''); ?></h2>
<p class="center"><?php _e('Sorry, but you are looking for something that isn’t here.', ''); ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<div class="clear"></div>
</div>
</div>
<?php get_footer(); ?>
Alles anzeigen