New Posts
Live Radio
Welcome guest, is this your first visit?
  • Login:
Professional Web Design - Landing Pages - Banners
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    CK
    CK is offline
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    ?
    Posts
    2,226
    Blog Entries
    2
    Feedback Score
    35 (100%)

    Default Pagination Issues

    Im having issues with pagination. Here is the bit thats calling for the post. When I try to use pagination on the homepage it works but creates all subsquent pages with the same snippet of content thats on the homepage. Category pagination works fine.

    I've googled endlessly and the only thing I can find is that the WP-Query doesnt work with pagination. Does anyone have a solution I can use?




    <?php $recent = new WP_Query("showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
    <?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
    <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" width="128" height="128" src="<?php echo get_post_meta($post->ID, "hpbottom", true); ?>" alt="<?php the_title(); ?>" /></a>
    <?php else: ?>
    <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
    <?php the_time('F jS, Y') ?> by <?php the_author(); ?>
    <br>
    Filed Under
    <?php the_category(', ') ?>
    <?php the_content_limit(260, ""); ?>
    <?php endwhile; ?>
    ----------------------------------------
    Everyone says they are willing to do whatever it takes to get ahead - but yet there are so few people up at 5AM ? - Robert Herjavec
    ---------------------------------------

  2. #2
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Sweden
    Posts
    448
    Feedback Score
    6 (100%)

    Default

    I have pm'd you a solution
    Gambling Revolutions

    Are you in need of nice looking poker chips? or maybe something else
    Gambling Products Recreation

    Swedish poker site with poker bonus and reviews.

  3. #3
    New Member
    My Status
     

    Add as a friend
    Join Date
    Sep 2009
    Location
    England
    Posts
    2
    Feedback Score
    0

    Default

    For anyone else with this problem, it's caused by the use of query post. You need to add the following right before your query string:

    PHP Code:
    (get_query_var('paged')) ? get_query_var('paged') : 1

  4. #4
    CK
    CK is offline
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    ?
    Posts
    2,226
    Blog Entries
    2
    Feedback Score
    35 (100%)

    Default

    Yeah I got it figured out...probably should have updated but thanks for posting that
    ----------------------------------------
    Everyone says they are willing to do whatever it takes to get ahead - but yet there are so few people up at 5AM ? - Robert Herjavec
    ---------------------------------------


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Anyone else having issues posting?
    By Jeremy in forum General Poker Affiliate Forum
    Replies: 8
    Last Post: 06-30-2009, 04:42 AM
  2. Redirection Issues
    By MJ in forum Wordpress - Web Design - Coding - Technical
    Replies: 21
    Last Post: 05-01-2009, 04:39 PM
  3. SEO for Pagination
    By Trikkur in forum Poker SEO Forum
    Replies: 8
    Last Post: 04-07-2009, 07:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.5
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0
Affiliate Program Consultant