- Create a new PHP template page. Call it “Overview” or something like that.
- Past in the code found below.
- save the new file to your wp site
- Open your admin page. Create a page.
- click quick edit and select “overview” from the template drop down.
Now this page will show all of your post within a category up to the <more> link.
If you want this on your home page just add the script to your index page along with an if statement to check that this is the home page and skip the template part.
in simple English this is what the code does:
Search all posts (you can limit this to categories)
Display the post.
Limit the amount you show to stop when it sees the <!–more–> tag.
*note the div tags are for styling the results
<?php
/*
Template Name: Overview
*/
?>
<?php
query_posts('category_name=mycategory');
global $more;
// set $more to 0 in order to only get the first part of the post
$more = 0;
// the Loop
while (have_posts()) : the_post();
?>
<div class="container">
<!-- Display the Title as a link to the Post's permalink. -->
<a href="<?php the_permalink(); ?>">permalink</a>
<div id="title"><?php the_title(); ?></div>
<!-- Display the Post's Content in a div box. -->
<div class="entry">
<!-- the content of the post -->
<?php the_content('view full the article?'); ?>
</div>
</div> <!-- closes the first div box -->
<?php
endwhile;
?>
Check out query_posts for more details