Problem with the function
-
Hi all,
I’m facing problem with the <?php is_paged(); ?> function. Please help me to understand the problem and fix it.
Here’s my code:`<?php get_header(); ?>
<?php if(!is_paged()) { ?>
<div id=”top” class=”clearfloat”>
<div id=”headline2″>
<?php $col = 0; $numcols = 3; ?>
<?php while (have_posts()) : the_post(); ?>
<?php if ($ct && $ct%$numcols==0) echo ‘<div class=”clearcol”></div>’; ?>
<div class=”col”><div class=”clearfloat”>
<div class=”spoiler”>
<?php $values = get_post_custom_values(“Image”);
if (isset($values[0])) { ?>
<a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
<img src=”<?php echo bloginfo(‘template_url’); ?>/scripts/timthumb.php?src=/<?php
$values = get_post_custom_values(“Image”); echo $values[0]; ?>&w=270&h=250&zc=1&q=100″
alt=”<?php the_title(); ?>” class=”left” width=”270px” height=”170px” /></a>
<?php } ?><h2 class=cat_title><?php the_category(‘, ‘); ?> »</h2>
<div class=”title”><a href=”<?php the_permalink() ?>” rel=”bookmark”><?php the_title(); ?></a></div>
<div class=”meta”>[<?php the_time(‘j M Y’) ?> | <?php comments_popup_link(‘No Comment’, ‘One Comment’, ‘% Comments’);?> | <?php if(function_exists(‘the_views’)) { the_views(); } ?>]</div><?php echo excerpt(30); ?>
</div></div>
</div>
<?php $ct++; ?>
<?php endwhile; ?><?php wp_reset_postdata();?>
<div class=”clearcol”></div><?php } ?>
<div class=”navigation”>
<?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); }
else { ?>
<div class=”right”><?php next_posts_link(‘Next Page »’) ?></div>
<div class=”left”><?php previous_posts_link(‘« Previous Page’) ?></div>
<?php } ?>
</div>
</div>
</div>
</div><?php get_footer(); ?>`
Thanks for your help.
- The topic ‘Problem with the function’ is closed to new replies.