Hey guys,
i am trying to include the simple comments_template() tag into my author.php for to make it possible to comment on this author’s profile page as if this was a pinboard. is this simply not possible or am i too stupid? 😉
i’m using wordpress 2.3.3 and a sexy k2 theme. which code do i have to embed into the author.php for showing a comment-text-field and so on?
(@stereopoly)
16 years, 1 month ago
Hey guys,
i am trying to include the simple comments_template() tag into my author.php for to make it possible to comment on this author’s profile page as if this was a pinboard. is this simply not possible or am i too stupid? 😉
i’m using wordpress 2.3.3 and a sexy k2 theme. which code do i have to embed into the author.php for showing a comment-text-field and so on?
this is what my code looks like till now:
<?php get_header(); ?>
<div class="content">
<div id="primary">
<div id="notices"></div>
<div id="current-content" class="hfeed">
<?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name); // NOTE: 2.0 bug requires get_userdatabylogin(get_the_author_login());
else :
$curauth = get_userdata(intval($author));
endif;
?>
<p><h3 class="entry-title">Profil: <?php echo $curauth->nickname; ?></h3></p>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<!-- <span class="avatar"><?php if(function_exists(cmd_show_avatar)) cmd_show_avatar(avatar); ?></span> -->
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div> <!-- #current-content -->
<div id="dynamic-content"></div>
</div> <!-- #primary -->
<?php get_sidebar(); ?>
</div> <!-- .content -->
<?php get_footer(); ?>
please tell me that it’s possible and i’m just too stupid!! HELP!!