18.03.2010, 16:15
|
#1 (permalink)
|
| PostRank: 1
Registriert seit: 24.12.2007 Ort: Weißenthurm
Beiträge: 34
| Aotoren anzeigen Ich möchte gerne das in den Artikeln die Autoren die diesen geschrieben haben angezeigt werden, habe einiges dazu hier durchgelesen, aber alle änderungen haben nix gebracht, deshalb wende ich mich jetzt selber mit dem Problem hierhin.
Ich benutze das Silver Light- Theme und hänge mal die index.php und die singel.php mit an, damit Ihr einen Einblick in den Code bekommt.
Ich hoffe Ihr könnt mir da ein wenig weiterhelfen...
Danke vorab...
index.php: PHP-Code: <?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?> <div class="entry"> <div id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanentlink zu <?php the_title(); ?>"><?php the_title(); ?></a></h2> <abbr title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s – %2$s'), the_date('', '', '', false), get_the_time()) ?></abbr> <!-- by <?php the_author() ?> -->
<?php the_content('Weiterlesen »'); ?> <?php if ( function_exists('the_tags') ) { the_tags('<p>Tags: ', ', ', '</p>'); } ?>
<p class="postmetadata">Gespeichert in <span class="cty"><?php the_category(', ') ?></span> | <?php edit_post_link('Edit', '', ' | '); ?> <span class="cmt"><?php comments_popup_link('Keine Kommentare »', '1 Kommentar »', '% Kommentare »'); ?></span></p> </div></div>
<?php endwhile; ?>
<div class="navigation"> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> </div>
<?php else : ?> <div class="entry"> <h2>Not Found</h2> Sorry, but you are looking for something that isn't here. </div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?> single.php Zitat:
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="entry">
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<abbr title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s – %2$s'), the_date('', '', '', false), get_the_time()) ?></abbr> <!-- by <?php the_author() ?> -->
<?php the_content('<p class="serif">Weiterlesen »</p>'); ?>
<?php if ( function_exists('the_tags') ) { the_tags('<p>Tags: ', ', ', '</p>'); } ?>
<?php wp_link_pages(array('before' => '<p><strong>Seiten:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<div class="entry">
<?php comments_template(); ?>
</div>
<?php endwhile; else: ?>
<div class="entry">
<p>Sorry, nichts gefunden.</p>
</div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
| |
| |