ahsanaltaf
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Forum: Fixing WordPress
In reply to: Post title char count?Great exactly what i was looking for and had the same problem as LenK.
Forum: Plugins
In reply to: Simple Tags can’t work with WordPress 2.9 RCAwesome !! WORKED 4 ME 2.
just wondering y the author hardcode it as such?Forum: Themes and Templates
In reply to: Problem with custom page templateAhh finally i figured it out it was due to a problem in the next/previous paging links .
Thanks .Forum: Themes and Templates
In reply to: Problem with custom page templateyes 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??
Forum: Themes and Templates
In reply to: Problem showing posts from specific category in indexThanks alot stvwlf.
I really appreciate it. It totally solved my problem.
Regards.Forum: Themes and Templates
In reply to: Problem showing posts from specific category in indexWhere 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('« Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> </div> </div> <?php get_footer(); ?>
Thanks.
Viewing 6 replies - 1 through 6 (of 6 total)