• I just want to add a previous link or have my pagination work at the bottom of the recent posts of home.php. Anyone who can help me resolve this problem, I will pay you!

    Check out the website here at: http://mcjawn.com/blog/

    <?php get_header(); ?>
    
    		<div id="topbanner" class="column span-14">   <!-- start top banner -->
                <div class="pagetitle">
                    // smacking babies
                </div>
            </div>   <!-- end top banner --> 
    
            <div id="home_content" class="column span-14">   <!-- start home_content -->
    
                <div id="home_left" class="column span-7 first">   <!-- start home_left -->
    
                	<?php $catid = $wpdb->get_var("SELECT term_ID FROM $wpdb->terms WHERE name='Asides'"); ?>
    
    				<?php $catid2 = $wpdb->get_var("SELECT term_ID FROM $wpdb->terms WHERE name='Featured'"); ?>
    
    				<?php $the_query = new WP_Query('cat=-' .$catid. '&showposts=5&orderby=post_date&order=desc');
    
    				while ($the_query->have_posts()) : $the_query->the_post(); ?>
    
    				<div id="latest_post">   <!-- start latest_post -->
    
    					<h3 class="mast"><div class="home_recent_thumb"><?php userphoto_the_author_thumbnail() ?></div>&nbsp;<?php the_author_posts_link(); ?> // Latest Post</h3>
    
    <?php if ( get_post_meta($post->ID, 'latest_home_img', true) ) { ?>
    
    					<div id="latest_post_image">
    					<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/latest/<?php echo get_post_meta($post->ID, "latest_home_img", $single = true); ?>" alt="<?php bloginfo('name'); ?>: Latest post" width="470"/></a>
    					</div>
    
    					<?php } ?>
    
    					<?php if ( get_post_meta($post->ID, 'main-video', true) ) { ?>
    
    					<div id="latest_post_image">
    					<p><?php echo get_post_meta($post->ID, "main-video", $single = true); ?></p>
    					</div>
    
    					<?php } ?>
    
    					<h3 class="latest_post_title" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
    
    					<p><?php echo strip_tags(get_the_excerpt(), '<a><strong>'); ?></p>
    
    					<div class="latest_post_meta">
    						<span class="latest_read_on"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Continue Reading</a></span>
    						<span class="latest_comments"><?php comments_popup_link('Post a comment', 'One comment', '% comments', '', 'Comments off'); ?></span>
    					</div>
    				</div>   <!-- end latest_post -->
    
    				<?php endwhile; ?>
    <?php if (pp_has_pagination()) : ?>
    		<div class="pagination">
    
                <!-- the previous page -->
                <?php pp_the_pagination(); if (pp_has_previous_page()) : ?>
                    <a href="<?php pp_the_previous_page_permalink(); ?>" class="prev">newer stories</a>
                <?php else : ?>
                    <span class="current prev">newer stories</span>
                <?php endif; pp_rewind_pagination(); ?>
    
                <!-- the page links -->
                <?php while(pp_has_pagination()) : pp_the_pagination(); ?>
                    <?php if (pp_is_current_page()) : ?>
                        <span class="current"><?php pp_the_page_num(); ?></span>
                    <?php else : ?>
                        <a href="<?php pp_the_page_permalink(); ?>"><?php pp_the_page_num(); ?></a>
                    <?php endif; ?>
                <?php endwhile; pp_rewind_pagination(); ?>
    
                <!-- the next page -->
                <?php pp_the_pagination(); if (pp_has_next_page()) : ?>
                    <a href="<?php pp_the_next_page_permalink(); ?>" class="next">older stories</a>
                <?php else : ?>
                    <span class="current next">older stories</span>
                <?php endif; pp_rewind_pagination(); ?>
    
    		</div>
    <?php endif; ?>
    
              </div>  <!-- end home_left -->
    
                <div id="home_right" class="column span-7 last">
    
                	<div id="home_about">
    
    					<h3 class="mast3">Welcome to <?php bloginfo('name'); ?></h3><p>A Philly Art and Culture Magazine. "Jawn" can be used as an any-type of noun.</p>
    
    					<?php $the_query = new WP_Query('pagename=description');
    
    					while ($the_query->have_posts()) : $the_query->the_post();
    
    					$do_not_duplicate = $post->ID; ?>
    
    					<?php the_content(); ?>
    
    					<?php endwhile; ?>				
    
    				</div>
    
    				<div class="column span-4 first">
    
    					<h3 class="mast">Featured Posts</h3>
    
    					<?php $the_query = new WP_Query('category_name=featured&showposts=5&offset=1&orderby=post_date&order=desc');
    
    					while ($the_query->have_posts()) : $the_query->the_post();
    
    					$do_not_duplicate = $post->ID; ?>
    
    					<div class="home_recent_post">
    
    						<?php if ( get_post_meta($post->ID, 'thumb_home_img', true) ) { ?>
    						<div class="home_recent_thumb">
    							<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/thumbs/<?php echo get_post_meta($post->ID, "thumb_home_img", $single = true); ?>" alt="<?php the_title(); ?>" /></a>
    						</div>
    						<?php } else { ?>
    						<div class="home_recent_thumb">
    							<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php
    							the_title(); ?>"><?php if (function_exists('the_thumb')) { the_thumb('altappend=recent_&subfolder=recent&width=48&height=48&keepratio=0'); } ?></a>
    						</div>
    						<?php } ?>
    
    						<div class="home_recent_title" id="post-<?php the_ID(); ?>">
    							<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
    						</div>
    
    						<div class="home_recent_date">
    							<?php the_time('F j, Y'); ?>
    						</div>
    
    						<div class="home_recent_auth">
    							By <?php the_author(); ?>
    						</div>
    
    					</div>
    
    					<?php endwhile; ?>
    
    					<?php include('ad_home.php'); ?>
    
    					<?php if ( !function_exists('dynamic_sidebar')
    					        || !dynamic_sidebar('MiddleColumn') ) : ?>				
    
    					<?php endif; ?>
    
                	</div>
    
                    <?php get_sidebar(); ?>         
    
                </div>
    
            </div>   <!-- end home_content -->        
    
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘TMA Theme Previous Link or Pagination’ is closed to new replies.