Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter whoozwah

    (@whoozwah)

    well, I was able to get the pagination working but the code that I used to fix it broke pretty much everything else. Every link to everything I have takes me back to the homepage…but the pagination works!

    eh, here’s my index code:

    <?php get_header();?>
    
    <div id="content">
    	<div class="left"><div class="lpadding">
    		<?php get_sidebar(); ?>
    	</div></div>
    
    	<div class="center"><div class="cpadding">
    
    <?php
    $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("cat=15&paged=$page");
    
    ?>
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    		<div class="title">
    			<h1><a href="<?php the_permalink() ?>" target="_self"><?php the_title(); ?></a></h1>
    			<h4><?php _e("Posted in: "); ?><?php the_category(',') ?><?php _e(" by "); ?><?php the_author_posts_link() ?><?php _e(" on "); ?><?php the_time('F j, Y'); ?><?php _e(" "); ?><?php edit_post_link(__('Edit')); ?></h4>
    		</div>
    
    		<?php the_content(__('(more...)')); ?>
    		<div class="clear"></div>
    
    		<div class="tags">Tags: <?php the_tags('', ', ', ''); ?></div>
    		<div class="permalink"><?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?></div>
    
    		<?php comments_template(); // Get wp-comments.php template ?>
    
    	<?php endwhile; else: ?>
    	<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    	<?php endif; ?>
    
    	</div></div>
    	<div class="clear"></div>
    </div>
    
    <?php get_footer(); ?>

    Where in or out of the loop is everything broken?

    Forum: Fixing WordPress
    In reply to: pagination errors
    Thread Starter whoozwah

    (@whoozwah)

    *nudges*

    Forum: Fixing WordPress
    In reply to: pagination errors
    Thread Starter whoozwah

    (@whoozwah)

    I forgot to say, when I click the “next page” (I know it’s backwards) it only shows the same articles that are on the main page, not the older ones.

    Thanks again.

    Thread Starter whoozwah

    (@whoozwah)

    problem solved. I successfully merged the sample author.php provided on the codex with a renamed index.php and kept adding and removing the Div tags until I got what I wanted.

    Thread Starter whoozwah

    (@whoozwah)

    that did it. I tried what you said before only without the

    • tags and it just blanked out the link. ‘preciate the help ??
Viewing 5 replies - 1 through 5 (of 5 total)