Hallo ich möchte ein Autorenprofile ausgeben dazu habe ich eine author.php angelegt und folgenden Code eingegeben...
PHP
<?php
/*
Template Name: Authors
*/
?>
<?php get_header(); ?>
<div id="content" class="narrowcolumn"> <!-- This sets the $curauth variable --> <?php if(isset($_GET['author_name'])) : $curauth = get_userdatabylogin($author_name); else : $curauth = get_userdata(intval($author)); endif; ?>
<h2 class="center">Autorenprofil von <?php echo $curauth->nickname; ?></h2>
<div id="content">
<div id="content-left">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="box-left" id="post-<?php the_ID(); ?>">
<h3><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<?php the_content(); ?>
<div class="clear"></div></div>
<?php endwhile; ?>
<?php else : ?>
<div class="box-left">
<h3>Not found!</h3>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
</div>
<?php endif; ?>
</div><!-- end content-left -->
<?php get_sidebar(); ?>
<div class="clear"></div>
</div><!-- end content -->
<?php get_footer(); ?>
Alles anzeigen
Leider wird gar nichts ausgegeben...
Ich könnte die Author Tags verwenden allerdings habe ich hier das Problem das ich diese nicht um weitere Felder wie z.B. mit dem Plugin Register Plus erweitern kann. Vieleicht habe Ihr Rat!
Noch kurz was ich überhaupt möchte...
Ich möchte ein Autorenprofile ausgeben wo Benutzerdifinierte Felder enthalten sind....