WordPress.org

Ready to get started?Download WordPress

Forums

Pinbin
Pinbin Theme, cant get wp user avatar to work (1 post)

  1. Hockeyportalen
    Member
    Posted 7 months ago #

    Where can i add the code in the loop or another place so the avatars show in the posts. Ive got it to work with multiple other themes, but i cant get it to work in this theme. The loop code is:

    <?php
    /**
     * Single post template
     */
    
    ?>
    <?php get_header(); ?>
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>     
    
       		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <?php if ( has_post_thumbnail() ) { ?>
      <div class="pinbin-image"><?php the_post_thumbnail( 'detail-image' );  ?></div>
      <div class="pinbin-category"><p><?php the_category(', ') ?></p></div>
          <div class="post-nav">
              <div class="post-prev"><?php previous_post_link('%link', '&larr;'); ?></div>
              <div class="post-next"><?php next_post_link('%link', '&rarr;'); ?></div>
          </div>
                <div class="pinbin-copy">
    <?php } else { ?>
          <div class="post-nav">
              <div class="post-prev"><?php previous_post_link('%link', '&larr;'); ?></div>
              <div class="post-next"><?php next_post_link('%link', '&rarr;'); ?></div>
          </div>
                <div class="pinbin-copy">
                  <div class="pinbin-category"><p><?php the_category(', ') ?></p></div>
    <?php } ?>
                    <h1><?php the_title(); ?></h1>
                     <p class="pinbin-meta">
    <?php _e( 'Av', 'pinbin' ); ?><?php the_author(); ?>, <?php the_time(get_option('date_format')); ?>,
               		 <?php the_content('Les mer!'); ?>
    	<div class="pagelink"><?php wp_link_pages(); ?></div>
    	 <div class="posttags"><?php the_tags(); ?></div>
                    <div class="clear"></div>
    				<?php comments_template(); ?> 
    
                    </div>
    
           </div>
    
    		<?php endwhile; endif; ?>
    
    <?php get_footer(); ?>

Reply

You must log in to post.

About this Theme

About this Topic

  • RSS feed for this topic
  • Started 7 months ago by Hockeyportalen
  • This topic is not resolved
  • WordPress version: 3.7.1

Tags

No tags yet.