Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: How to draw a conclusion of posts in the profile

@galiulinr

Participant

Here’s the code works for me:

<?php $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); ?>
<!-- The Loop -->
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
        <l i>
            <a hr ef="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
            <?php the_title(); ?></ a>,
            <?php the_time('d M Y'); ?> in <?php the_category('&');?>
        </l i>
    <?php endwhile; else: ?>
        < p><?php _e('No posts by this author.'); ?></ p>
    <?php endif; ?>
<!-- End Loop --> 
Skip to toolbar