“Previous&Next” doesn’t work
-
Hi guys,
I’ve some problem on my blog https://www.zerogradinord.net: Pevious&Next button doesn’t work. When you click on it the permalink change like you’re visiting the second page, third, fourth and so on, but you can read all the time the home page.
This is the code of the index page:<?php get_header(); ?>
<style>
#divSWD{
background-color:#000000;
height: 120px;
width: 90%;
border:1px solid #FFFFFF;
font-family: Arial, Helvetica, sans-serif;
color: #FFFFFF;
left: 5%;
position:relative;
top:3px;
}
</style>
<div id=”divSWD”><?php include(“swd_carousel_nuovo.php”) ?></div>
<?php get_sidebar(); ?>
<?php include (TEMPLATEPATH . ‘/right-sidebar.php’); ?>
<!– Inizio Codice Shinystat –>
<script type=”text/javascript” language=”JavaScript” src=”https://codicepro.shinystat.com/cgi-bin/getcod.cgi?USER=…”></script>
<noscript>
<img src=”https://www.shinystat.com/cgi-bin/shinystat.cgi?USER=…” alt=”Statistiche” border=”0″>
</noscript>
<!– Fine Codice Shinystat –>
<script type=”text/javascript”>
var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “https://www.”);
document.write(unescape(“%3Cscript src='” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
</script>
<script type=”text/javascript”>
var pageTracker = _gat._getTracker(“…”);
pageTracker._trackPageview();
</script>
<div id=”content”>
<?php if (have_posts()) : ?>
<?php
if (is_home()) {
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
query_posts(“cat=-904&”);
}
?>
<?php while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<p class=”date”><?php _e(‘Posted by’,’andreas09′); ?> <?php if (get_the_author_url()) { ?>“><?php the_author(); ?><?php } else { the_author(); } ?> <?php _e(‘on’,’andreas09′); ?> <?php the_time (__(‘F jS, Y’,’andreas09′)) ?></p>
<div class=”entry”>
<?php the_content(__(‘Read the rest of this entry »’,’andreas09′)); ?>
</div>
<?php if(function_exists(‘wp_print’)) { print_link(); } ?>
<p></p>
<p class=”category”> <?php _e(‘Posted in’,’andreas09′); ?> <?php the_category(‘, ‘) ?> | <?php edit_post_link(__(‘Edit’,’andreas09′), ”, ‘ | ‘); ?> <?php comments_popup_link(__(‘No Comments »’,’andreas09′), __(‘1 Comment »’,’andreas09′), __(‘% Comments »’,’andreas09′)); ?></p>
</div>
<?php endwhile; ?>
<div class=”bottomnavigation”>
<div class=”alignleft”><?php next_posts_link(__(‘« Previous Entries’,’andreas09′)) ?></div>
<div class=”alignright”><?php previous_posts_link(__(‘Next Entries »’,’andreas09′)) ?></div>
</div>
<?php else : ?>
<div id=”page”>
<h1 class=”center”><?php _e(‘Not Found’,’andreas09′); ?></h1>
<p class=”center”><?php _e(‘Sorry, but you are looking for something that isn\’t here.’,’andreas09′); ?></p>
<p class=”center”><?php _e(‘Perhaps you would like to try a search or select from one of the links on the menu.’,’andreas09′); ?></p>
</div>
<?php endif; ?>
</div>
<?php get_footer(); ?>
Some suggestions?
MM
- The topic ‘“Previous&Next” doesn’t work’ is closed to new replies.