New Landing How can we help? Themeforest Theme Support Supreme Pagination not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Supreme
  • #22210
    cbreimhurst
    Member
    Post count: 8

    Hi – I concocted a custom ‘Authors’ page template and I cannot figure out why the pagination is not working – can you take a look?

    This particular author should have several more posts: http://thingstodolancasterpa.com/author/acook/

    The author.php code is below

    thanks!

    <?php get_header(); ?>
    	
    <?php
    	$options = get_option('sf_supreme_options');
    	$sidebar_config = $options['archive_sidebar_config'];
    	$left_sidebar = $options['archive_sidebar_left'];
    	$right_sidebar = $options['archive_sidebar_right'];
    	$blog_type = $options['archive_display_type'];
    	
    	$page_wrap_class = '';
    	if ($sidebar_config == "left-sidebar") {
    	$page_wrap_class = 'has-left-sidebar has-one-sidebar';
    	} elseif ($sidebar_config == "right-sidebar") {
    	$page_wrap_class = 'has-right-sidebar has-one-sidebar';
    	} elseif ($sidebar_config == "both-sidebars") {
    	$page_wrap_class = 'has-both-sidebars';
    	} else {
    	$page_wrap_class = 'has-no-sidebar';
    	}
    	
    	$list_class = '';
    	
    	if ($blog_type == "masonry") {
    	$list_class .= 'masonry-items';
    	} else if ($blog_type == "mini") {
    	$list_class .= 'mini-items';
    	} else {
    	$list_class .= 'standard-items';
    	}
    	
    	if ($blog_type == "masonry") {
    	global $include_isotope;
    	$include_isotope = true;
    	}
    	
    	global $has_blog;
    	$has_blog = true;
    
            $user_email = get_the_author_meta('user_email'); 
            $show_author_info = get_post_meta($post->ID, 'sf_author_info', true);
    
     
    ?>
    
    <div class="page-heading clearfix">
    
    	<!-- Conditional Statements for .page-heading -->
    	<?php $post = $posts[0]; ?>
    	<?php /* If this is a tag archive */ if( is_tag() ) { ?>
    	<h2><?php _e("Posts tagged with", "swiftframework"); ?> ‘<?php single_tag_title(); ?>’</h2>
    	<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    	<h2><?php _e("Archive for", "swiftframework"); ?> <?php the_time('F jS, Y'); ?></h2>
    	<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    	<h2><?php _e("Archive for", "swiftframework"); ?> <?php the_time('F, Y'); ?></h2>
    	<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    	<h2><?php _e("Archive for", "swiftframework"); ?> <?php the_time('Y'); ?></h2>
    	<?php /* If this is an author archive */ } elseif (is_author()) { ?>
    	<?php $author = get_userdata( get_query_var('author') );?>
    	<h2><?php _e("", "swiftframework"); ?> <?php echo $author->display_name;?></h2>
    	<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    	<h2><?php _e("Blog Archives", "swiftframework"); ?></h2>
    	<?php } else { ?>
    	<h2><?php wp_title(''); ?></h2>
    	<?php } ?>
    	
    	<?php if(function_exists('bcn_display')) { ?>	
    	<div class="breadcrumbs-wrap">
    		<div id="breadcrumbs">
    			<?php bcn_display(); ?>
    		</div>
    	</div>
    	<?php } ?>
    	
    	<div class="heading-divider"></div>
    	
    </div>
    
    <article class="post-4684 team type-team status-publish hentry clearfix " id="4684">
    			
    
    						<figure class="profile-image-wrap">
    
    				
    						<?php if(file_exists('./i/authors/'.$author->ID.'.jpg')) { ?>
                            <img src="http://thingstodolancasterpa.com/i/authors/<?=$author->ID; ?>.jpg">
                            <?php } ?>
    						</figure>			
    			
    			<div class="article-body-wrap">
    				<div class="body-text">
    					<h4 class="member-position"></h4>
    					<?=nl2br($author->description);?>		
            			<?php if($author->user_email != "" || !empty($author->user_email)) { ?>
    					
    			<!--  to display email
    			<ul class="member-contact">
                        <li><span>E-mail:</span> <a href="mailto:<?=$author->user_email; ?>"><?=$author->user_email; ?></a></li>
                        </ul>
                        <?php } ?>
    			-->
    
    	<!--  to find author ID -->
    <!-- 
    	<?php $author = get_user_by( 'slug', get_query_var( 'author_name' ) ); echo $author->ID; ?>
    -->
                        
    				</div>
    			</div>
    		
    		<!-- CLOSE article -->
    		</article>
    
    <h3 class="wpb_heading"><span>Recent Articles by <?php echo $author->display_name;?></span></h3>
    
    <div class="inner-page-wrap <?php echo $page_wrap_class; ?> clearfix">
    		
    
    	<!-- OPEN page -->
    	<?php if ($sidebar_config == "left-sidebar") { ?>
    	<div class="archive-page two-thirds column omega clearfix">
    	<?php } elseif ($sidebar_config == "right-sidebar") { ?>
    	<div class="archive-page two-thirds column alpha clearfix">
    	<?php } else { ?>
    	<div class="archive-page clearfix">
    	<?php } ?>
    	
    		<?php if ($sidebar_config == "both-sidebars") { ?>
    			
    			<section class="page-content eight columns omega clearfix">
    			
    				<?php if(have_posts()) : ?>
    					
    					<div class="blog-wrap">
    					
    						<!-- OPEN .blog-items -->
    						<ul class="blog-items <?php echo $list_class; ?> clearfix">
    				
    						<?php while (have_posts()) : the_post(); ?>
    				
    							<li class="blog-item">
    							<?php // The following determines what the post format is and shows the correct file accordingly
    								$format = get_post_format();
    								if($format == 'quote') {
    								get_template_part( 'includes/post-formats/quote' );
    								} else {
    								get_template_part( 'includes/post-formats/standard' );
    								}
    							?>
    							</li>
    				
    						<?php endwhile; ?>
    								
    						<!-- CLOSE .blog-items -->
    						</ul>
    					
    					</div>
    					
    				<?php else: ?>
    					
    				<h3><?php _e("Sorry, there are no posts to display.", "swiftframework"); ?></h3>
    			
    				<?php endif; ?>
    				
    				<?php if ( has_previous_posts() || has_next_posts() ) { ?>
    			
    					<!-- OPEN .pagination-wrap .blog-pagination .clearfix -->
    					<div class="pagination-wrap blog-pagination clearfix">
    					
    						<div class="nav-previous"><?php next_posts_link(__('<i class="icon-chevron-left"></i> <span class="nav-text">Older Entries</span>', "swiftframework")); ?></div>
    						<?php wp_link_pages(); ?>
    						<div class="nav-next"><?php previous_posts_link(__('<span class="nav-text">Newer Entries</span><i class="icon-chevron-right"></i>', "swiftframework")); ?></div>		
    						
    					<!-- CLOSE .pagination-wrap .blog-pagination .clearfix -->
    					</div>
    			
    				<?php } ?>
    				
    			</section>
    				
    			<aside class="sidebar left-sidebar four columns alpha">
    				<?php dynamic_sidebar($left_sidebar); ?>
    			</aside>
    		
    		<?php } else { ?>
    		
    		<section class="page-content clearfix">
    
    			<?php if(have_posts()) : ?>
    				
    				<div class="blog-wrap">
    				
    					<!-- OPEN .blog-items -->
    					<ul class="blog-items <?php echo $list_class; ?> clearfix">
    			
    					<?php while (have_posts()) : the_post(); ?>
    			
    						<li class="blog-item">
    						<?php // The following determines what the post format is and shows the correct file accordingly
    							$format = get_post_format();
    							if($format == 'quote') {
    							get_template_part( 'includes/post-formats/quote' );
    							} else {
    							get_template_part( 'includes/post-formats/standard' );
    							}
    						?>
    						</li>
    			
    					<?php endwhile; ?>
    							
    					<!-- CLOSE .blog-items -->
    					</ul>
    					
    				</div>
    		
    			<?php else: ?>
    				
    			<h3><?php _e("Sorry, there are no posts to display.", "swiftframework"); ?></h3>
    		
    			<?php endif; ?>
    		
    			<?php if ( has_previous_posts() || has_next_posts() ) { ?>
    		
    				<!-- OPEN .pagination-wrap .blog-pagination .clearfix -->
    				<div class="pagination-wrap blog-pagination clearfix">
    				
    					<div class="nav-previous"><?php next_posts_link(__('<i class="icon-chevron-left"></i> <span class="nav-text">Older Entries</span>', "swiftframework")); ?></div>
    					<?php wp_link_pages(); ?>
    					<div class="nav-next"><?php previous_posts_link(__('<span class="nav-text">Newer Entries</span><i class="icon-chevron-right"></i>', "swiftframework")); ?></div>		
    					
    				<!-- CLOSE .pagination-wrap .blog-pagination .clearfix -->
    				</div>
    		
    			<?php } ?>
    			
    		</section>
    		
    		<?php } ?>	
    	
    	<!-- CLOSE page -->
    	</div>
    	
    	<?php if ($sidebar_config == "left-sidebar") { ?>
    		
    		<aside class="sidebar left-sidebar one-third column alpha">
    			<?php dynamic_sidebar($left_sidebar); ?>
    		</aside>
    
    	<?php } else if ($sidebar_config == "right-sidebar") { ?>
    		
    		<aside class="sidebar right-sidebar one-third column omega">
    			<?php dynamic_sidebar($right_sidebar); ?>
    		</aside>
    		
    	<?php } else if ($sidebar_config == "both-sidebars") { ?>
    		
    		<aside class="sidebar right-sidebar four columns omega">
    			<?php dynamic_sidebar($right_sidebar); ?>
    		</aside>
    	
    	<?php } ?>
    
    </div>
    
    <!-- WordPress Hook -->
    <?php get_footer(); ?>
    #22358
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hi, I’m terrible sorry but we cannot look through your custom code for errors, you will need to hire a dedicated developer or ask in a development forum.

    Thanks for understanding!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register