Pagination not working (1 post)

  1. vascorama
    Posted 3 years ago #

    Hello, i´m a bit noob regarding wordpress core changes.
    I downloaded a theme and pagination is not working, giving me a 404 page.
    I tried disabling the plugins and it din´t fix it, also permalinks didn´t fix it.
    Here´s my loop:

    <?php get_header(); ?>
    <?php if(get_option('gear_home') == "cars") { ?>
    <?php include (TEMPLATEPATH . '/lib/listhome.php'); ?>
    <?php } else { ?>
    <div id="wrapper">
    <div id="topcover">
    <?php include (TEMPLATEPATH . '/top.php'); ?>
    <div id="casing">
    <div id="content">
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>	
    <div class="post" id="post-<?php the_ID(); ?>">
    <div class="title">
    	<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <div class="postmeta">
    	<span class="author">Posted by <?php the_author(); ?> </span> <span class="clock">  <?php the_time('M - j - Y'); ?></span> <span class="comm"><?php comments_popup_link('0 Comment', '1 Comment', '% Comments'); ?></span>
    <div class="entry">
    if ( has_post_thumbnail() ) { ?>
    	<a href="<?php the_permalink() ?>"><img class="postimg" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&h=150&w=200&zc=1" alt="" /></a>
    <?php } else { ?>
    	<a href="<?php the_permalink() ?>"><img class="postimg" src="<?php bloginfo('template_directory'); ?>/images/dummy.png" alt="" /></a>
    <?php } ?>
    <?php wpe_excerpt('wpe_excerptlength_index', ''); ?>
    <div class="clear"></div>
    <?php endwhile; ?>
    <div class="clear"></div>
    <?php getpagenavi(); ?>
    <?php $wp_query = null; $wp_query = $temp;?>
    <?php } ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Any help will be appreciated

    [ http://codex.wordpress.org/Forum_Welcome#No_Bumping ]

Topic Closed

This topic has been closed to new replies.

About this Topic