Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes, though I believe that I edited the nicename for all authors, so that doesn’t seem likely to be the only culprit?

    Thanks for taking a look! I posted on the theme designer’s forums as well.

    I believe Sam stopped using the co-authors plugin, as did I, at least until I can figure out what is causing the issue.

    One additional clue: at least for me, the duplication only happens for authors who do not have enough posts to reach a second page. Authors with enough articles to be paginated do not have this issue, it seems.

    Happy to play around with some code if you have any suggestions!

    Hi! I’m having the same issue- duplicate articles show up on author pages. Samuel, I notice that we are using the same theme (Gonzo), which might go a way towards explaining it. I’d love any help towards fixing the problem!

    The author code is fairly complex, customized by the theme to output a special page. I’ve copied the two key files below, author.php and a second file that is called to loop.

    <?php get_header(); ?>
    
    <section id="omc-main" class="omc-main-author">	
    
    	<?php if (!is_paged()) { ?>	
    
    		<?php if ( get_the_author_meta( 'description' ) ) : ?>
    
    			<div id="omc-author-page">		
    
    				<?php
    				$name = get_the_author_meta( 'display_name' );
    				$last = get_the_author_meta( 'last_name' );
    
    				$website = get_the_author_meta( 'user_url' );
    				$twitter = get_the_author_meta( 'twitter' );
    				$facebook = get_the_author_meta( 'facebook' );
    				$linkedin = get_the_author_meta( 'linkedin' );
    				$youtube = get_the_author_meta( 'youtube' );
    				$google = get_the_author_meta( 'google' );
    				$soundcloud = get_the_author_meta( 'soundcloud' );
    				?>
    
    				<span id="omc-author-page-image"><?php  echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 104 ) ); ?>		</span>	
    
    				<h1><?php printf( __( 'About %s ', 'gonzo' ), get_the_author() ); ?><?php echo $last; ?></h1>
    
    				<p><?php the_author_meta( 'description' ); ?><p>
    
    				<?php if ($website !== '') {?><div class="omc-author-connect omc-author-website"><?php _e('Website', 'gonzo');?>: <a href="<?php echo $website; ?>"><?php echo $website; ?></a></div><?php } ?> 
    
    				<div id="omc-author-social-icons">
    
    					<?php if($twitter !== '') {?><a class="omc-author-twitter" href="<?php echo $twitter; ?>"></a><?php } ?>
    					<?php if($facebook !== '') {?><a class="omc-author-facebook" href="<?php echo $facebook; ?>"></a><?php } ?>
    					<?php if($google !== '') {?><a class="omc-author-google" href="<?php echo $google; ?>"></a><?php } ?>
    					<?php if($linkedin !== '') {?><a class="omc-author-linkedin" href="<?php echo $linkedin; ?>"></a><?php } ?>
    					<?php if($youtube !== '') {?><a class="omc-author-youtube" href="<?php echo $youtube; ?>"></a><?php } ?>
    					<?php if($soundcloud !== '') {?><a class="omc-author-soundcloud" href="<?php echo $soundcloud; ?>"></a><?php } ?>						
    
    					<br class="clear" />
    
    				</div><!-- /omc-author-social-icons -->					
    
    				<br class="clear" />
    
    			</div><!-- /omc-author-page -->
    
    		<?php endif; rewind_posts(); ?>
    
    	<?php } ?>
    
    	<div class="omc-cat-top"><h1><?php printf( __( 'Author Archives: %s', 'gonzo' ), "<em>" . get_the_author() . "</em>" ); ?></h1></div>
    	<div class="no-display"></div>
    
    	<?php get_template_part('loop', 'blog-style-2'); ?>
    
    </section><!-- /omc-main -->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    This might be the offending piece though. It’s a file called loop-blog-style-2.

    <?php
    if ( have_posts() ) : while ( have_posts() ) : the_post();
    $omc_review_enable =  get_post_meta(get_the_ID(), 'omc_review_enable', true);
    $omc_final_score =  get_post_meta(get_the_ID(), 'omc_final_score', true);
    $omc_final_percentage = $omc_final_score * 20 ;
    $format = get_post_format();
    if ( false === $format )
    $format = 'standard';
    ?>		
    
    <?php if ($format !== 'aside'){ ?>
    <article class="omc-blog-two omc-half-width-category" id="post-<?php the_ID(); ?>">
    <?php } ?>
    <?php if ($format == 'aside'){ ?>
    <article class="omc-blog-two omc-half-width-category advertisement" id="post-<?php the_ID(); ?>">
    <?php } ?>	
    
        <?php
          global $h_sticky;
          global $displayed;
          $home_page = get_option ('shareit_home', 0);
          if (!$displayed and $h_sticky && $home_page == 1) {
            echo $h_sticky;
            $displayed = true;
          }
        ?>
    	<div class="omc-resize-290 omc-blog">		
    
    		<?php $category = get_the_category(); ?>
    
    		<h3 class="omc-blog-two-cat"><a href="<?php echo home_url(); echo ('/?cat='.$category[0]->term_id); ?>"><?php echo $category[0]->cat_name; ?></a></h3>
    
    		<?php if ($omc_review_enable == 1) { ?><span class="omc-blog-two-stars-under leading-article"><span class="omc-blog-two-stars-over leading-article" style="width:<?php echo $omc_final_percentage; ?>%"></span></span><?php } ?>
    
    		<a href="<?php the_permalink();?>" >
    
    			<?php if ($format == 'video' || $format == 'audio') { ?><span class="module-a-video-icon-big omc-half-width-icon omc-module-b-left"></span><?php } ?>
    
    			<?php if (has_post_thumbnail()) { 
    
    				the_post_thumbnail('half-landscape', array('class' => 'omc-image-resize')); 
    
    			} else {
    
    				echo('<img src="'.get_template_directory_uri().'/images/no-image-half-landscape.png" class="omc-image-resize" alt="no image" />');
    
    			} ?>
    
    		</a>
    
    	</div><!-- /omc-resize-290 -->
    
    	<div class="omc-blog-two-text">
    
    		<h2><a href="<?php the_permalink();?>"><?php the_title();?></a></h2>
    
    <?php if ($format !== 'aside'){ ?>
    
    		<p class="omc-blog-two-date"><?php the_time('F jS, Y') ?> | <em><?php _e('by', 'gonzo'); ?>
    
    <?php if ( function_exists( 'coauthors_posts_links' ) ) { ?>
    <?php coauthors_firstnames()?></em></p>
    <?php } else { ?>
    <?php the_author() ?></em></p>
    <?php } ?>
    
    <?php } ?>	
    
    		<p class="omc-blog-two-exceprt" ><?php wpe_excerpt('blog_2', 'wpe_excerptmore'); ?></p>
    
    		<br class="clear" />
    
    	</div><!-- /omc-blog-two-text -->
    
    </article>
    
    <?php endwhile;  endif; ?> 
    
    <br class="clear" />
    
    <?php kriesi_pagination(); wp_reset_query(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)