Adding posts to home page
-
<table width="100%" border="0" cellpadding="75" cellspacing="0"> <tr> <td width="50%" valign="top"> <h3>News</h3> <?php query_posts( array( 'category__and' => array(4), 'posts_per_page' => 3, 'orderby' => 'title', 'order' => 'DESC' ) ); ?> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink() ?>"><b><?php the_title(); ?></b></a></li> <a href="<?php the_permalink() ?>">Read More</a> <?php endwhile;?></td> <td valign="top"> <h3>Blog</h3> <?php wp_reset_query();?> <?php query_posts (query_string . 'cat=3' ); ?> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink() ?>"><b><?php the_title(); ?></b></a></li> <a href="<?php the_permalink() ?>">Read More</a> <?php endwhile;?></td> </tr> </table>Using this code for the second loop..
`<?php query_posts (query_string . ‘cat=3′ ); ?>’It is not pulling from only cat 3.. It pulls from all categories..
Any ideas would be appreciated!
Thanks! Karla
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
The topic ‘Adding posts to home page’ is closed to new replies.