Need help? Check out our Support site, then


Previous/Next Links Won't Work

  1. coolhouseonline
    Member

    The previous and next links on my site keep displaying everything on my home page.
    Here is the site http://www.coolhouseonline.com

    Here is the code:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    <?php
    $blog_category = get_option('T_blog_category');
    ?>
    <!-- Begin blog -->
    <div id="blog-section">
    <div class="span-<?php $sidebar = get_option('T_sidebar'); if($sidebar || (!$theme_options && !$sidebar)) { echo "15 colborder home"; } else { echo "24 last"; } ?>">
    <h3 class="sub"><?php echo ""; ?></h3>
    <?php $blog_query = new WP_Query("category_name='$blog_category'&showposts=7"); $b == 0; ?>
    <?php while ($blog_query->have_posts()) : $blog_query->the_post();
    $do_not_duplicate = $post->ID; ?>
    <?php $b++; ?>
    <div <?php if(function_exists('post_class')) : ?><?php post_class(); ?><?php else : ?>class="post post-<?php the_ID(); ?>"<?php endif; ?>>
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>
    <div class="entry">
    <?php include (THEMELIB . '/apps/multimedia.php'); ?>
    <p><?php echo gPPGetVideo($post->ID); ?></p>
    <?php the_content(); ?>
    <?php if ($b == 1) { ?>
    <?php include (THEMELIB . '/apps/ad-main.php'); ?>
    <?php } ?>
    </div>
    <div class="clear"></div>
    <p class="postmetadata"><?php the_time('M d, Y') ?> | Categories: <?php if (the_category(', ')) the_category(); ?> <?php if (get_the_tags()) the_tags('| Tags: '); ?> | <?php comments_popup_link('Leave A Comment »', '1 Comment »', '% Comments »'); ?> <?php edit_post_link('Edit', '| ', ''); ?> </p>
    </div>
    <div class="clear"></div>

    <?php endwhile; wp_reset_query(); $b == 0; ?>

    <div class="nav">
    <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
    </div>
    <div class="clear"></div>

    </div>
    </div>
    <?php $sidebar = get_option('T_sidebar'); if($sidebar || (!$theme_options && !$sidebar)) { get_sidebar(); } ?>
    <hr />

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Please help! I can't figure this out.

  2. Sorry to say, but you are asking for help in the wrong forum.
    It can be confusing, but wordpress.COM
    is separate from wordpress.ORG.

    Yours is a self-hosted blog, powered by wordpress:
    scroll down to the bottom of you blog and click on "powered by wordpress"
    and you will find yourself in the place you want:
    http://wordpress.org/support/

    Our answers won't apply to you (and we cannot do anything with php so honestly I have no clue). Details here:
    http://en.support.wordpress.com/com-vs-org/

Topic Closed

This topic has been closed to new replies.

About this Topic