WordPress.org

Forums

Pagination not working (1 post)

  1. leanocodes
    Member
    Posted 2 years ago #

    Hey Guys,

    Definitely your help.

    I have this page at

    http://www.cssbros.com/wowszene-wp/

    If you scroll down and press the pagination, it doesn't redirect to the page 2.

    I have figured out the problem,

    I think it conflicts with my featured post codes query above.

    This code right here:

    <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("showposts=3&paged=$page");?>
    <?php while (have_posts()) : the_post(); ?>

    <div class="post">
    <div class="post-title">
    <h2>"><?php the_title(); ?></h2>
    <span class="category"><?php $category = get_the_category(); echo $category[0]->cat_name;?></span>
    <span class="tags">mop,mop beta</span>
    <span class="author"><?php the_author() ?></span>
    <span class="date"><?php the_time(' F jS, Y') ?></span>
    </div><!--post title-->
    <div class="post-content">
    <div class="featured-image">
    <?php the_post_thumbnail('post-thumbnail'); ?>
    </div><!--featured image-->
    <?php the_excerpt(); ?>
    <div class="readmore-divider">
    <span class="readmore-icon"></span>
    <span class="comment-icon"></span>
    " class="readmore">read more
    <div class="readmore"><?php comments_popup_link('0 Comment ', '1 Comment', '% Comments'); ?></div>
    <?php
    if(function_exists('display_social4i'))
    echo display_social4i("large","float-right");
    ?>
    <div class="clear"></div>
    </div><!--readmore divider-->
    </div><!--post content-->
    </div><!--post-->

    <?php endwhile;?>
    <?php wp_pagenavi(); ?>

    is getting conflict with:

    <ul id="slider">
    <? $YOUR_CATEGORY_IDENTITY = get_option('of_featured-article') ?>
    <?php query_posts('category_name='.$YOUR_CATEGORY_IDENTITY.'&posts_per_page=5'); ?>
    <?php while (have_posts()) : the_post(); ?>

  2. <div class="featured-image-container">
    <?php the_post_thumbnail('featured-thumb'); ?>
    </div><!--featured image container-->
    <h2>"><?php the_title(); ?></h2>
    <?php the_excerpt(); ?>

  3. <?php endwhile;?>

    Can anyone tell me what to do?

    Thank You in advance for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags