Moin :)
Ich habe vor wenigen Tagen eine author.php erstellt --> http://www.apfelearth.com/author/remo-zehnder/
da wird mit einem php author Code den Namen des Autors ausgelesen... allerdings wird seit heute gar nix mehr angezeigt.. kein Code funktioniert mehr.. am author.php habe ich nix verändert. Unten der ganze Quellcode.
Danke für jede jede Hilfe.. habe sehr lange an der Umsetzung gebraucht, wäre also toll wenn es wieder gehen wird :DD
PHP
<?php get_header(); ?>
<?php if (is_archive()) $post_number = get_option('elegantestate_archivenum_posts');if (is_search()) $post_number = get_option('elegantestate_searchnum_posts');if (is_tag()) $post_number = get_option('elegantestate_tagnum_posts');if (is_category()) $post_number = get_option('elegantestate_catnum_posts'); ?>
<div id="content-top"> <div id="menu-bg"></div> <div id="top-index-overlay"></div>
<?php $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); ?>
<div id="content" class="clearfix">
<div id="main-area" class="ae_index"> <div id="author_title"> Alle Beiträge von <?php the_author_firstname(); ?> </div> <div id="author_description"> <?php the_author_description(); ?> </div> <div id="my_mail"> <a href="mailto:<?php the_author_email(); ?>"><?php the_author_firstname(); ?> per Mail kontaktieren. </a> </div> <?php if(isset($curauth->twitter) && !($curauth->twitter == '')) { ?><div id="author_twitter"> <a href="http://twitter.com/<?php the_author_meta('twitter'); ?>" target="_blank"> <?php the_author_firstname(); ?> auf Twitter folgen. </a> </div><?php } ?>
<?php if(isset($curauth->facebook) && !($curauth->facebook == '')) { ?><div id="author_facebook"> <a href="http://facebook.com/<?php the_author_meta('facebook'); ?>" target="_blank"><?php the_author_firstname(); ?> auf Facebook folgen. </a> </div><?php } ?>
<?php if(isset($curauth->gplus) && !($curauth->gplus == '')) { ?><div id="author_gplus"> <a href="http://plus.google.com/<?php the_author_meta('gplus'); ?>" target="_blank"><?php the_author_firstname(); ?> auf Google Plus folgen. </a> </div><?php } ?>
<?php $i = 1; ?> <?php global $query_string; if (is_category()) query_posts($query_string . "&showposts=$post_number&paged=$paged&cat=$cat"); else query_posts($query_string . "&showposts=$post_number&paged=$paged"); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php include(TEMPLATEPATH . '/includes/entry.php'); ?> <?php $i++; ?> <?php endwhile; ?>
<div class="clear"></div> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?> <?php include(TEMPLATEPATH . '/includes/navigation.php'); ?> <?php } ?> <?php else : ?> <?php include(TEMPLATEPATH . '/includes/no-results.php'); ?> <?php endif; wp_reset_query(); ?> </div> <!-- end #main-area-->
<?php get_sidebar(); ?> <?php get_footer(); ?>
Alles anzeigen