NameSilo

(Wordpress) displaying newest post from each category on the main page

Spaceship Spaceship
Watch

damen

Established Member
Impact
1
Ok, I'm SURE this is possible, but I havent found anyone who has actually done it yet.

Instead of having every new post appear on my main page (which is a problem if you have a lot of posts in one category that pushes good content from another category off the front page), I want only the most recent post to appear from each category on the main page. But I want to keep the display in the same format (just displaying the titles doesnt help me any).

Anyone have any thoughts on how to do this?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
could you paste the index.php from your theme here?
 
0
•••
absolutely... (and thanks)

<?php get_header();?>
<?php get_sidebar();?>
<div id="content">

<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>

<div class="post" id="post-<?php the_ID(); ?>">
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<div class="entry">
<?php if (function_exists('get_cat_icon')) get_cat_icon(); ?><?php the_content('<b>Read the rest of this entry »</b>'); ?>
</div>
<div class="postmetadata">
<?php the_tags('Tags: ', ', ', '<br />'); ?> Posted by <?php the_author() ?> in <?php the_category(', ') ?> on <?php the_time('F j, Y') ?>
<!-- | by <?php the_author() ?> -->| <?php edit_post_link('Edit', ''); ?> <?php if (function_exists("wp2bb")) wp2bb(); ?>
</div>
</div>

<?php endwhile; ?>

<div class="navigation"><b>
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div></b>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>

<?php else : ?>

<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>

<?php endif; ?>
</div>
<?php get_footer ();?>
 
0
•••
1
•••
thank you - thats really helpful!
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back