SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru babyboy808's Avatar
    Join Date
    Nov 2004
    Location
    dublin
    Posts
    602
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom Post Type, Pagination and 404s!

    Head is getting melted with this pagination crap in WordPress!

    What am I doing wrong here…

    Test site

    http://www.clients.eirestudio.net/savvas/reviews/

    Code

    Code:
    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("post_type=bingo_review&posts_per_page=1&paged=$paged");
    if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
       blah
    <?php endwhile; ?>      
    <?php endif; ?>
    
    <?php wp_paginate(); ?>

  2. #2
    SitePoint Member liquidair's Avatar
    Join Date
    Nov 2011
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would take a look at this tutorial about make 404 etc.
    404's

    Dave


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •