Try looking through the Theme Directory for 3-column themes.
Hi equaldesign and esmi!
First, i tried to work with “Query Posts”, but i got in trouble. I don’t know where should i put these code.
Reading the page that ‘equaldesign’ send me, i see that i have to include
“
query_posts(‘cat=1’);
“
to show only the posts from Category ID=1
However, where should i write these code? In what file?.
And Esmi, a template with 2 column isn’t enough? Or 3 is better?
Thanks a lot!!
Here’s example of using multiple loops to retrieve different sets of posts:
http://www.daobydesign.com/blog/2007/07/modifying-wordpress-front-page/
Here’s what i got…
i’ve tryed a lot of thing to resolve this problem, but nothing fix it.
Bellow is the start of my “index.php” file:
<?php get_header(); ?>
<?php
query_posts('cat=4');
query_posts('showposts=5');
?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<!--Start Post-->
<div <?php post_class(); ?> style="margin-bottom: 40px;">
<div class="p-head">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small class="p-time">
Here’s the start of file “page.php”
<?php
query_posts('cat=1');
//The Query
query_posts('showposts=5');
//The Loop
if ( have_posts() ) : while ( have_posts() ) : the_post();
..
endwhile; else:
..
endif;
//Reset Query
wp_reset_query();
?>
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<?php
global $post;
$the_newest = get_posts(‘numberposts=1′);
$the_newer = get_posts(‘numberposts=3&offset=1′);
$the_new = get_posts(‘numberposts=5&offset=4&order=DESC&orderby=post_date’);
?>
<div class="p-head">
What should I do?
I really need help!
Thanks!
Best bet is look at how another theme does those kind of blocks. If I remember the Everson News theme does that and there a others…