Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Great exactly what i was looking for and had the same problem as LenK.

    Awesome !! WORKED 4 ME 2.
    just wondering y the author hardcode it as such?

    Thread Starter ahsanaltaf

    (@ahsanaltaf)

    Ahh finally i figured it out it was due to a problem in the next/previous paging links .
    Thanks .

    Thread Starter ahsanaltaf

    (@ahsanaltaf)

    yes i have created a category-8.php template . Forgot to mention it in the original post though.

    The other things that ive used are to keep that category away from the home page.

    PS. same code works fine in 2.7 . Perhaps its a 2.8 problem??

    Thread Starter ahsanaltaf

    (@ahsanaltaf)

    Thanks alot stvwlf.
    I really appreciate it. It totally solved my problem.
    Regards.

    Thread Starter ahsanaltaf

    (@ahsanaltaf)

    Where do i put it? before the loop or after?
    PS it dosnt work with both ,so here is the code

    <?php get_header(); ?>
    
    <div id="mainpost2">
    <h1>Latest News:</h1>
    <?php $recent = new WP_Query("cat=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
    <a href="<?php the_permalink() ?>" rel="bookmark">
    <?php the_title(); ?>
    </a>
    <?php endwhile; ?>
    </div>
    <br />	
    
    <?php
    // Get posts excluding category id 1
    query_posts('cat=-1');
    // the Loop
    while (have_posts()) : the_post();
      // the content of the post
      the_content;
    endwhile;
    ?>
    
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
    <div class="postinfo">
    
    <?php  include(TEMPLATEPATH.'/imagevalues.php'); ?>	
    
    <a href="<?php echo $url; ?>" class="thumpre" rel="<?php echo $image1; ?>" title=""><img src="<?php echo $image; ?>" alt="<?php the_title(); ?>" /></a>
    
    				<?php the_content ?>
    <div class="contentCenter">
    <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    <div class="right"> <h1><small><a href="<?php the_permalink(); ?>#comments"> (<?php comments_number('0','1','%'); ?>)</a></small></h1>    </div>	 </div>
    			</div>	
    
    	<?php endwhile; ?>
    
    	<?php else : ?>
    <div class="postinfo3">
    		<h2 class="pagetitle">Not Found</h2>
    		<p>Sorry, but you are looking for something that isn't here.</p>
    </div>
    
    	<?php endif; ?>
    
    <div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    		</div>
    
    </div>
    
    <?php get_footer(); ?>

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)