<?php /* Template Name: homepage */ ?>
<?php get_header(); ?>
<div id="content">
<div class="padder">
<?php do_action( 'bp_before_blog_page' ); ?>
<div class="page" id="blog-page" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2 class="pagetitle"><?php the_title(); ?></h2>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry">
<?php the_content( __( '<p class="serif">Read the rest of this page →</p>', 'buddypress' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><p>' . __( 'Pages: ', 'buddypress' ), 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?>
<?php edit_post_link( __( 'Edit this page.', 'buddypress' ), '<p class="edit-link">', '</p>'); ?>
</div>
</div>
<?php endwhile; endif; ?>
<ul id="latestnews">
<li>
<?php query_posts('category_name=bodyboard&showposts=1');
while (have_posts()) : the_post();
// do whatever you want
?>
<b><a>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
<?php the_excerpt(); ?>
<?php
endwhile;
?>
</li>
<li>
<?php query_posts('category_name=sup&showposts=1');
while (have_posts()) : the_post();
// do whatever you want
?>
<b><a>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
<?php the_excerpt(); ?>
<?php
endwhile;
?>
</li>
<li>
<?php query_posts('category_name=longboarders&showposts=1');
while (have_posts()) : the_post();
// do whatever you want
?>
<b><a>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
<?php the_excerpt(); ?>
<?php
endwhile;
?>
</li>
<li>
<?php query_posts('category_name=shortboarding&showposts=1');
while (have_posts()) : the_post();
// do whatever you want
?>
<b><a>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
<?php the_excerpt(); ?>
<?php
endwhile;
?>
</li>
<li>
<?php query_posts('category_name=fit&showposts=1');
while (have_posts()) : the_post();
// do whatever you want
?>
<b><a>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
<?php the_excerpt(); ?>
<?php
endwhile;
?>
</li>
<li>
<?php query_posts('category_name=windsurfers&showposts=1');
while (have_posts()) : the_post();
// do whatever you want
?>
<b><a>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
<?php the_excerpt(); ?>
<?php
endwhile;
?>
</li>
</ul>
</div><!-- .page -->
<?php do_action( 'bp_after_blog_page' ); ?>
</div><!-- .padder -->
</div><!-- #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>``
and here is my css:`#latestnews li
{
display: inline;
list-style-type: none;
padding: 20px;
}
#latestnews li a
{
color:#FC0;
text-decoration:none;
}
#latestnews li a:hover
{
color: #00F;
text-decoration:none;
}`