to display the posts, I use that function that pulls only a specific category:
” <?php query_posts(“showposts=5&cat=1”);
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
etc etc etc
<?php endwhile; else: ?>
<?php endif; ?> “
then what’s the problem?
I need to display 10 posts in 2 columns, only this same category
when I do a php page in regular use in the query so I
Column 1> SELECT * FROM noticias_dados where idcat = ‘$ idcat’ order by id desc LIMIT 0.5
column 2> SELECT * FROM noticias_dados where idcat = ‘$ idcat’ order by id desc LIMIT 5.5
then shows the top 5 in column 1 and 6-10 in column 2, how to do this in wordpress?
- The topic ‘how to display posts from a category into two columns?’ is closed to new replies.